diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2015-01-24 11:30:02 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-27 11:58:46 +0300 |
commit | 9120d94e8f9abd3eb9f00a5aaa6eca85cdf4f439 (patch) | |
tree | b141172aa32ce2fa5f9a531efae302f5c04ac112 /net/dsa | |
parent | 225b818982403120ce1f5e7d4b3e5245e0399775 (diff) | |
download | linux-9120d94e8f9abd3eb9f00a5aaa6eca85cdf4f439.tar.xz |
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 <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions