forked from luck/tmp_suning_uos_patched
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:
|
||||
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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user