瀏覽代碼

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 <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Bob Copeland 16 年之前
父節點
當前提交
e874e65855
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      net/mac80211/pm.c

+ 3 - 0
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 */
 	/* stop hardware */
 	if (local->open_count) {
 	if (local->open_count) {
 		ieee80211_led_radio(local, false);
 		ieee80211_led_radio(local, false);