From: Luciano Coelho Date: Sat, 24 Jan 2015 08:30:02 +0000 (+0200) Subject: mac80211: handle potential race between suspend and scan completion X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~69^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9120d94e8f9abd3eb9f00a5aaa6eca85cdf4f439;p=pandora-kernel.git mac80211: handle potential race between suspend and scan completion If suspend starts while ieee80211_scan_completed() is running, between the point where SCAN_COMPLETED is set and the work is queued, ieee80211_scan_cancel() will not catch the work and we may finish suspending before the work is actually executed, leaving the scan running while suspended. To fix this race, queue the scan work during resume if the SCAN_COMPLETED flag is set and flush it immediately. Signed-off-by: Luciano Coelho Signed-off-by: Johannes Berg --- Reading git-diff-tree failed