]> git.baikalelectronics.ru Git - kernel.git/commitdiff
NTB: Fix 'request_irq()' and 'free_irq()' inconsistancy
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 19 Dec 2016 05:52:55 +0000 (06:52 +0100)
committerJon Mason <jdmason@kudzu.us>
Fri, 23 Dec 2016 21:11:03 +0000 (16:11 -0500)
'request_irq()' and 'free_irq()' should have the same 'dev_id'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/amd/ntb_hw_amd.c
drivers/ntb/hw/intel/ntb_hw_intel.c

index 774918ca63d25d9b29ddfe35ccf68ea5fda31d23..019a158e1128d7a27cdbea269a9149bc90b364dd 100644 (file)
@@ -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);
index d2ce28008fee4ee07b40558ed582f03cbb7a0d11..eca9688bf9d9fdff11ea091b9b2e3d9c115ab8e0 100644 (file)
@@ -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);