From: Johannes Berg Date: Wed, 7 Apr 2010 07:21:36 +0000 (-0700) Subject: iwlwifi: fix scan races X-Git-Tag: v2.6.34-rc6~33^2~18^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88be026490ed89c2ffead81a52531fbac5507e01;p=pandora-kernel.git iwlwifi: fix scan races When an internal scan is started, nothing protects the is_internal_short_scan variable which can cause crashes, cf. https://bugzilla.kernel.org/show_bug.cgi?id=15667. Fix this by making the short scan request use the mutex for locking, which requires making the request go to a work struct so that it can sleep. Reported-by: Peter Zijlstra Signed-off-by: Johannes Berg Signed-off-by: Reinette Chatre --- Reading git-diff-tree failed