Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57636
b: refs/heads/master
c: 6a81215
h: refs/heads/master
v: v3
  • Loading branch information
Marcelo Tosatti authored and John W. Linville committed Jun 11, 2007
1 parent 12e98e0 commit da0a009
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51d84f501684db22f5fcc30821cbbde2a0a2f264
refs/heads/master: 6a8121572e2f2d188f04673bfa460ccfcedeb008
10 changes: 8 additions & 2 deletions trunk/drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ static int if_usb_probe(struct usb_interface *intf,
goto dealloc;

if (wlan_add_mesh(priv))
goto dealloc;
goto err_add_mesh;

if (libertas_activate_card(priv))
goto dealloc;
goto err_activate_card;

if (libertas_found < MAX_DEVS) {
libertas_devs[libertas_found] = priv->wlan_dev.netdev;
Expand All @@ -218,6 +218,12 @@ static int if_usb_probe(struct usb_interface *intf,
*/
return 0;

err_activate_card:
unregister_netdev(priv->mesh_dev);
free_netdev(priv->mesh_dev);
err_add_mesh:
free_netdev(priv->wlan_dev.netdev);
kfree(priv->adapter);
dealloc:
if_usb_free(usb_cardp);

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ wlan_private *wlan_add_card(void *card)

err_kzalloc:
free_netdev(dev);
priv = NULL;
done:
lbs_deb_leave_args(LBS_DEB_NET, "priv %p", priv);
return priv;
Expand Down

0 comments on commit da0a009

Please sign in to comment.