nl80211: Cancel rfkill timeout on deinit

Got segfault, when freeing drv and there exists registered timeout for
blocked rfkill. This patch adds cancel timeout to avoid this.

Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
Eduardo Abinader 2014-04-25 20:46:03 -04:00 committed by Jouni Malinen
parent fa653bf4ad
commit e390df0553

View file

@ -4824,6 +4824,7 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss)
netlink_send_oper_ifla(drv->global->netlink, drv->ifindex, 0,
IF_OPER_UP);
eloop_cancel_timeout(wpa_driver_nl80211_send_rfkill, drv, drv->ctx);
rfkill_deinit(drv->rfkill);
eloop_cancel_timeout(wpa_driver_nl80211_scan_timeout, drv, drv->ctx);