]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fix crash in MCC mode
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 7 Oct 2014 04:44:37 +0000 (10:14 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Oct 2014 18:48:37 +0000 (14:48 -0400)
commit5b82a3aeb26da61f9301cfef756a51429b7908a5
tree619e25c74f1b99f36f818fe3e3129be507d1b1ab
parent45ad9039c36d538a05ae1a3f0693dc615d52d70a
ath9k: Fix crash in MCC mode

When a channel context is removed, the hw_queue_base
is set to -1, this will result in a panic because
ath9k_chanctx_stop_queues() can be called on an interface
that is not assigned to any context yet - for example,
when trying to scan.

Fix this issue by setting the hw_queue_base to zero
when a channel context is removed.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c