summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-02 10:14:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:37:28 +0100
commit1aeced70f77def8a7ea790fd1f2a11bfd9d752b4 (patch)
tree5bd99cf3cc2616deb40a525c16e55fe395bba9f1 /drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h
parentdc7bbf895e438014c15d21222d0ba7544e98999d (diff)
ath9k: fix race condition in enabling/disabling IRQs
commit 3a5e969bb2f6692a256352649355d56d018d6b88 upstream. The code currently relies on refcounting to disable IRQs from within the IRQ handler and re-enabling them again after the tasklet has run. However, due to race conditions sometimes the IRQ handler might be called twice, or the tasklet may not run at all (if interrupted in the middle of a reset). This can cause nasty imbalances in the irq-disable refcount which will get the driver permanently stuck until the entire radio has been stopped and started again (ath_reset will not recover from this). Instead of using this fragile logic, change the code to ensure that running the irq handler during tasklet processing is safe, and leave the refcount untouched. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h')
0 files changed, 0 insertions, 0 deletions