From: Bob Copeland Date: Sat, 24 Jan 2009 18:21:14 +0000 (-0500) Subject: mac80211: flush workqueue a second time in suspend() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e874e6585539f6706b8e5f96125c9fca89cce716;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git mac80211: flush workqueue a second time in suspend() Drivers can theoretically queue more work in one of their callbacks from mac80211 suspend, so let's flush it once more to be on the safe side, just before calling ->stop(). Signed-off-by: Bob Copeland Signed-off-by: John W. Linville --- diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 6d17ed7fd49b..44525f517077 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -44,6 +44,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) } } + /* flush again, in case driver queued work */ + flush_workqueue(local->hw.workqueue); + /* stop hardware */ if (local->open_count) { ieee80211_led_radio(local, false);