[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>
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 6433be6..10698a1 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -231,8 +231,7 @@
 	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);