mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
rndis_wlan: free priv correctly when rndis_wext_bind fails
Private structure is allocated by wiphy_new now, so use wiphy_free instead of kfree. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
8d4d99ae89
commit
eb1a685e07
1 changed files with 3 additions and 3 deletions
|
@ -2449,8 +2449,8 @@ static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf)
|
|||
set_wiphy_dev(wiphy, &usbdev->udev->dev);
|
||||
|
||||
if (wiphy_register(wiphy)) {
|
||||
wiphy_free(wiphy);
|
||||
return -ENODEV;
|
||||
retval = -ENODEV;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
set_default_iw_params(usbdev);
|
||||
|
@ -2472,7 +2472,7 @@ fail:
|
|||
flush_workqueue(priv->workqueue);
|
||||
destroy_workqueue(priv->workqueue);
|
||||
|
||||
kfree(priv);
|
||||
wiphy_free(wiphy);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue