ath10k: Disable MSI in case IRQ configuration is unknown
authorAlexander Gordeev <agordeev@redhat.com>
Thu, 13 Feb 2014 15:50:01 +0000 (17:50 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Feb 2014 16:04:00 +0000 (18:04 +0200)
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 <agordeev@redhat.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c

index abcb7edb6485906aca0f140651f0ae67aa14e5a7..4c303144c05f71cbed9fbb6a9cfef7862e31008c 100644 (file)
@@ -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");