atheros: Deinit l2_packet sock_xmit on error path
This commit is contained in:
parent
8421e95c71
commit
4a46e82fb4
1 changed files with 2 additions and 0 deletions
|
@ -1188,6 +1188,8 @@ madwifi_init(struct hostapd_data *hapd, struct wpa_init_params *params)
|
|||
|
||||
return drv;
|
||||
bad:
|
||||
if (drv->sock_recv != NULL && drv->sock_recv != drv->sock_xmit)
|
||||
l2_packet_deinit(drv->sock_recv);
|
||||
if (drv->sock_xmit != NULL)
|
||||
l2_packet_deinit(drv->sock_xmit);
|
||||
if (drv->ioctl_sock >= 0)
|
||||
|
|
Loading…
Reference in a new issue