diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index a06b6ee63c07..4935b843bcca 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -850,6 +850,12 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw) | |||
850 | 850 | ||
851 | rtnl_unlock(); | 851 | rtnl_unlock(); |
852 | 852 | ||
853 | /* | ||
854 | * Now all work items will be gone, but the | ||
855 | * timer might still be armed, so delete it | ||
856 | */ | ||
857 | del_timer_sync(&local->work_timer); | ||
858 | |||
853 | cancel_work_sync(&local->restart_work); | 859 | cancel_work_sync(&local->restart_work); |
854 | cancel_work_sync(&local->reconfig_filter); | 860 | cancel_work_sync(&local->reconfig_filter); |
855 | 861 | ||