diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2010-10-06 11:22:09 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 22:30:42 +0200 |
commit | e229f844d7223b7063bea1e649203ac521a58fe1 (patch) | |
tree | 59067ee607b0ad937fd541e981428b6c8cb1c5ab /net/mac80211/pm.c | |
parent | mac80211: reduce number of __ieee80211_scan_completed calls (diff) | |
download | linux-e229f844d7223b7063bea1e649203ac521a58fe1.tar.xz linux-e229f844d7223b7063bea1e649203ac521a58fe1.zip |
mac80211: keep lock when calling __ieee80211_scan_completed()
We are taking local->mtx inside __ieee80211_scan_completed(), but just
before call to that function we drop the lock. Dropping/taking lock is not
good, because can lead to hard to understand race conditions.
Patch split scan_completed() code into two functions, first must be called
with local->mtx taken and second without it.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/pm.c')
0 files changed, 0 insertions, 0 deletions