From c72368310d6799da92ec12192d8b15c2ae7ab0b5 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 25 May 2007 13:35:23 -0400 Subject: [PATCH] [PATCH] libertas: correctly unregister mesh netdev on error Subject says it all. Signed-off-by: Dan Williams Signed-off-by: John W. Linville --- drivers/net/wireless/libertas/if_usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 6433be63fb..10698a1c1c 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c @@ -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); -- 2.39.5