Commit c7236831 authored by Dan Williams's avatar Dan Williams Committed by John W. Linville

[PATCH] libertas: correctly unregister mesh netdev on error

Subject says it all.
Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4ace1138
...@@ -231,8 +231,7 @@ static int if_usb_probe(struct usb_interface *intf, ...@@ -231,8 +231,7 @@ static int if_usb_probe(struct usb_interface *intf,
return 0; return 0;
err_activate_card: err_activate_card:
unregister_netdev(priv->mesh_dev); libertas_remove_mesh(priv);
free_netdev(priv->mesh_dev);
err_add_mesh: err_add_mesh:
free_netdev(priv->dev); free_netdev(priv->dev);
kfree(priv->adapter); kfree(priv->adapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment