]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix crash when interface is closed but scan is ongoing
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 21 Jul 2011 07:22:50 +0000 (10:22 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:22 +0000 (19:45 +0300)
commit9a2fdb747d073aaa70ff6f502f8ada327077b8a1
tree703069f9eecb4857f0d25032795d8fca61e566c4
parent37da1128230be70c06eb967a0e1772efb23eb587
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 <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c