diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-05-16 10:15:39 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-05-23 04:00:47 -0400 |
commit | f2708bedf2bec33cab077defe0587497e203284d (patch) | |
tree | 55a2b98fe16b9f079b0e5366a86b561dea1fe57a /drivers/net/wireless/ath/ath10k | |
parent | 95bf21f97f09b724ed7d5eb9f0b3c5c664f0329e (diff) |
ath10k: prevent hif_stop being called twice
Recently there was a bug discovered that involved
hif_stop() being called twice that ended up with a
double free_irq() call but it only manifested with
multiple MSI interrupts mapping.
Catch this kind of a problem early in driver
regardless of interrupt mapping.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 7d72b9cfe0be..91d6076d7a71 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -1272,6 +1272,9 @@ static void ath10k_pci_hif_stop(struct ath10k *ar) | |||
1272 | 1272 | ||
1273 | ath10k_dbg(ATH10K_DBG_BOOT, "boot hif stop\n"); | 1273 | ath10k_dbg(ATH10K_DBG_BOOT, "boot hif stop\n"); |
1274 | 1274 | ||
1275 | if (WARN_ON(!ar_pci->started)) | ||
1276 | return; | ||
1277 | |||
1275 | ret = ath10k_ce_disable_interrupts(ar); | 1278 | ret = ath10k_ce_disable_interrupts(ar); |
1276 | if (ret) | 1279 | if (ret) |
1277 | ath10k_warn("failed to disable CE interrupts: %d\n", ret); | 1280 | ath10k_warn("failed to disable CE interrupts: %d\n", ret); |