Skip to content

Commit

Permalink
NTB: Fix 'request_irq()' and 'free_irq()' inconsistancy
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Christophe JAILLET authored and Jon Mason committed Dec 23, 2016
1 parent 09e71a6 commit 28734e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/ntb/hw/amd/ntb_hw_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/ntb/hw/intel/ntb_hw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28734e8

Please sign in to comment.