aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-09-05 10:03:26 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:36:44 (GMT)
commit2dccd18d814e28c9e47f12af5e3d0e271dad7b35 (patch)
tree08b80250d44f5189e90c748498045dca9d10b8dc
parentbdd45f86917e4b2f5575bb0a10b477a893bdb8d6 (diff)
downloadhostap-07-2dccd18d814e28c9e47f12af5e3d0e271dad7b35.zip
hostap-07-2dccd18d814e28c9e47f12af5e3d0e271dad7b35.tar.gz
hostap-07-2dccd18d814e28c9e47f12af5e3d0e271dad7b35.tar.bz2
atheros: Deinit l2_packet sock_xmit on error path
(cherry picked from commit 4a46e82fb47499f7c89fae855d0670c713c8330c)
-rw-r--r--src/drivers/driver_atheros.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index a146114..b7c630a 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -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)