]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix sched scan netlink socket owner destruction
authorJohannes Berg <johannes.berg@intel.com>
Thu, 5 Jan 2017 09:57:14 +0000 (10:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 5 Jan 2017 09:59:53 +0000 (10:59 +0100)
commitd31a490843f5678e9be62ded0adbc633448b92e8
treed1f35e254b4cf620ceb0e3833ee19bcdb5aba36c
parent30b21a763e5ac3336cdffa329e8335b1cc7d877e
nl80211: fix sched scan netlink socket owner destruction

A single netlink socket might own multiple interfaces *and* a
scheduled scan request (which might belong to another interface),
so when it goes away both may need to be destroyed.

Remove the schedule_scan_stop indirection to fix this - it's only
needed for interface destruction because of the way this works
right now, with a single work taking care of all interfaces.

Cc: stable@vger.kernel.org
Fixes: 1d2e563743c35 ("nl80211: Stop scheduled scan if netlink client disappears")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c