Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87b1423b authored by Michal Kazior's avatar Michal Kazior Committed by John W. Linville
Browse files

ath10k: fix MSI-X setup failpath



Irqs were not freed up correctly upon msi-x setup
failure.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0847beb2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1883,9 +1883,10 @@ static int ath10k_pci_start_intr_msix(struct ath10k *ar, int num)
			ath10k_warn("request_irq(%d) failed %d\n",
				    ar_pci->pdev->irq + i, ret);

			for (; i >= MSI_ASSIGN_CE_INITIAL; i--)
				free_irq(ar_pci->pdev->irq, ar);
			for (i--; i >= MSI_ASSIGN_CE_INITIAL; i--)
				free_irq(ar_pci->pdev->irq + i, ar);

			free_irq(ar_pci->pdev->irq + MSI_ASSIGN_FW, ar);
			pci_disable_msi(ar_pci->pdev);
			return ret;
		}