From: Stanislaw Gruszka Date: Wed, 6 Oct 2010 09:22:09 +0000 (+0200) Subject: mac80211: keep lock when calling __ieee80211_scan_completed() X-Git-Tag: v2.6.37-rc1~147^2~191^2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e229f844d7223b7063bea1e649203ac521a58fe1;p=pandora-kernel.git 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 Acked-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed