atheros: Deinit l2_packet sock_xmit on error path

This commit is contained in:
Jouni Malinen 2010-09-05 13:03:26 +03:00
parent 8421e95c71
commit 4a46e82fb4

View file

@ -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)