From: Johannes Berg Date: Mon, 7 Mar 2011 14:48:41 +0000 (+0100) Subject: mac80211: fix scan race, simplify code X-Git-Tag: v2.6.39-rc1~468^2~88^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d07bfd8b6f20a81d7ec65c50f35b053d9e3aa740;p=pandora-kernel.git mac80211: fix scan race, simplify code The scan code has a race that Michael reported he ran into, but it's easy to fix while at the same time simplifying the code. The race resulted in the following warning: ------------[ cut here ]------------ WARNING: at net/mac80211/scan.c:310 ieee80211_rx_bss_free+0x20c/0x4b8 [mac80211]() Modules linked in: [...] [] (unwind_backtrace+0x0/0xe0) from [] (warn_slowpath_common+0x4c/0x64) [... backtrace wasn't useful ...] Reported-by: Michael Buesch Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed