[PATCH] libertas: fix error handling of card initialization
Subject says it all. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
51d84f5016
commit
6a8121572e
@@ -823,6 +823,7 @@ wlan_private *wlan_add_card(void *card)
|
||||
|
||||
err_kzalloc:
|
||||
free_netdev(dev);
|
||||
priv = NULL;
|
||||
done:
|
||||
lbs_deb_leave_args(LBS_DEB_NET, "priv %p", priv);
|
||||
return priv;
|
||||
|
Reference in New Issue
Block a user