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

Commit 28734e8f authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jon Mason
Browse files

NTB: Fix 'request_irq()' and 'free_irq()' inconsistancy



'request_irq()' and 'free_irq()' should have the same 'dev_id'.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 09e71a6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -599,7 +599,7 @@ static int ndev_init_isr(struct amd_ntb_dev *ndev,

err_msix_request:
	while (i-- > 0)
		free_irq(ndev->msix[i].vector, ndev);
		free_irq(ndev->msix[i].vector, &ndev->vec[i]);
	pci_disable_msix(pdev);
err_msix_enable:
	kfree(ndev->msix);
+1 −1
Original line number Diff line number Diff line
@@ -494,7 +494,7 @@ static int ndev_init_isr(struct intel_ntb_dev *ndev,

err_msix_request:
	while (i-- > 0)
		free_irq(ndev->msix[i].vector, ndev);
		free_irq(ndev->msix[i].vector, &ndev->vec[i]);
	pci_disable_msix(pdev);
err_msix_enable:
	kfree(ndev->msix);