提交 c7236831 编写于 作者: D Dan Williams 提交者: John W. Linville

[PATCH] libertas: correctly unregister mesh netdev on error

Subject says it all.
Signed-off-by: NDan Williams <dcbw@redhat.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 4ace1138
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册