]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: cancel restart_work in ieee80211_unregister_hw
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 22 Aug 2010 21:48:25 +0000 (23:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:33:20 +0000 (14:33 -0400)
commitca8e4b3c73404aff136361095eba5d58c590f347
tree95090b63fbd9643693a8fe2e85b218356815bd4b
parent95f4ed284b9ee5afe4ddfa3043510c1817ed4ac1
mac80211: cancel restart_work in ieee80211_unregister_hw

Unlike most other workqueue-tasks, the restart_work is
not scheduled onto mac80211's private per-interface
workqueue, but onto one of the system-wide workqueues.

Therefore the mac80211-stack has to cancel any pending
restarts, before destroying the shared device context
and handing back the memory. Otherwise - under very
unlucky circumstances - there could be a stale work-
item left, because some other kernel component might
have delayed the execution of ieee80211_restart_work
for too long.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c