Skip to content

Commit

Permalink
[PATCH] libertas: correctly unregister mesh netdev on error
Browse files Browse the repository at this point in the history
Subject says it all.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Williams authored and John W. Linville committed Jun 11, 2007
1 parent 4ace113 commit c723683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ static int if_usb_probe(struct usb_interface *intf,
return 0;

err_activate_card:
unregister_netdev(priv->mesh_dev);
free_netdev(priv->mesh_dev);
libertas_remove_mesh(priv);
err_add_mesh:
free_netdev(priv->dev);
kfree(priv->adapter);
Expand Down

0 comments on commit c723683

Please sign in to comment.