From: Alexander Gordeev Date: Thu, 13 Feb 2014 15:50:01 +0000 (+0200) Subject: ath10k: Disable MSI in case IRQ configuration is unknown X-Git-Tag: v3.15-rc1~113^2~18^2^2~267^2~6 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=bb8b621ac34605b8e20b63021bed7d10f3dfa544;hp=bdcb2c9e2f9e40639e4b212d08d8cdba54932c0d;p=cascardo%2Flinux.git ath10k: Disable MSI in case IRQ configuration is unknown In case IRQ configuration is unknown possibly enabled MSIs are left enabled in ath10k_pci_deinit_irq(). This update fixes the described misbehaviour. Signed-off-by: Alexander Gordeev Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index abcb7edb6485..4c303144c05f 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2598,6 +2598,8 @@ static int ath10k_pci_deinit_irq(struct ath10k *ar) case MSI_NUM_REQUEST: pci_disable_msi(ar_pci->pdev); return 0; + default: + pci_disable_msi(ar_pci->pdev); } ath10k_warn("unknown irq configuration upon deinit\n");