mirror of https://gitee.com/openkylin/linux.git
[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:
parent
4ace113876
commit
c72368310d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue