[PATCH] libertas: correctly unregister mesh netdev on error

Subject says it all.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Dan Williams 2007-05-25 13:35:23 -04:00 committed by John W. Linville
parent 4ace113876
commit c72368310d
1 changed files with 1 additions and 2 deletions

View File

@ -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);