From: Kalle Valo Date: Thu, 21 Jul 2011 07:22:50 +0000 (+0300) Subject: ath6kl: fix crash when interface is closed but scan is ongoing X-Git-Tag: v3.2-rc1~129^2~422^2^2~19^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fd1eacec1b8cd081b9ae067f852cece3e886521;p=pandora-kernel.git ath6kl: fix crash when interface is closed but scan is ongoing When ath6kl module was removed while a scan was ongoing the driver would crash in ath6kl_cfg80211_scan_complete_event(). Fix the function not to iterate nodes when the scan is aborted. The nodes are already freed when the module is being unloaded. This patch removes the null check entirely as the wmi structure is not accessed anymore during module unload. Also fix a bug where the status was checked as a bitfield with '&' operator. But it's not a bitfield, just a regular error code. This is a port of my patch from ath6kl staging with the same title. Signed-off-by: Kalle Valo --- Reading git-diff-tree failed