mac80211: release sched_scan_sdata when stopping sched scan
authorAlexander Bondar <alexander.bondar@intel.com>
Sun, 16 Mar 2014 08:49:54 +0000 (10:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:55 +0000 (21:29 +0100)
commit71228a1eabaf7fa4b2c3060cfee60875254cec14
tree5cc36e38156681b4b5b4336ae29c935f856330e1
parent112c44b2df0984121a52fbda89425843b8e1a457
mac80211: release sched_scan_sdata when stopping sched scan

Assuming sched_scan_stop operation is synchronous the driver may not
necessary call ieee80211_sched_scan_stopped_work. Since this work is
the only place where sched_scan_sdata is released we can possibly run
into situation when it is never released. Fix this by releasing it
just after calling drv_sched_scan_stop.

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c