mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
NTB: Fix 'request_irq()' and 'free_irq()' inconsistancy
'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>
This commit is contained in:
parent
09e71a6f13
commit
28734e8f69
@ -599,7 +599,7 @@ static int ndev_init_isr(struct amd_ntb_dev *ndev,
|
|||||||
|
|
||||||
err_msix_request:
|
err_msix_request:
|
||||||
while (i-- > 0)
|
while (i-- > 0)
|
||||||
free_irq(ndev->msix[i].vector, ndev);
|
free_irq(ndev->msix[i].vector, &ndev->vec[i]);
|
||||||
pci_disable_msix(pdev);
|
pci_disable_msix(pdev);
|
||||||
err_msix_enable:
|
err_msix_enable:
|
||||||
kfree(ndev->msix);
|
kfree(ndev->msix);
|
||||||
|
@ -494,7 +494,7 @@ static int ndev_init_isr(struct intel_ntb_dev *ndev,
|
|||||||
|
|
||||||
err_msix_request:
|
err_msix_request:
|
||||||
while (i-- > 0)
|
while (i-- > 0)
|
||||||
free_irq(ndev->msix[i].vector, ndev);
|
free_irq(ndev->msix[i].vector, &ndev->vec[i]);
|
||||||
pci_disable_msix(pdev);
|
pci_disable_msix(pdev);
|
||||||
err_msix_enable:
|
err_msix_enable:
|
||||||
kfree(ndev->msix);
|
kfree(ndev->msix);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user