From: Christian Lamparter Date: Sun, 22 Aug 2010 21:48:25 +0000 (+0200) Subject: mac80211: cancel restart_work in ieee80211_unregister_hw X-Git-Tag: v2.6.37-rc1~147^2~584^2^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258086a48b766d12a500f98834654ffa927ca475;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed