ntb: Fix leakage of ntb_device::msix_entries[] array
Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Jon Mason <jon.mason@intel.com>
This commit is contained in:
parent
c8eee3795d
commit
717e8e8bfe
@ -1281,6 +1281,7 @@ static void ntb_free_interrupts(struct ntb_device *ndev)
|
||||
free_irq(msix->vector, &ndev->db_cb[i]);
|
||||
}
|
||||
pci_disable_msix(pdev);
|
||||
kfree(ndev->msix_entries);
|
||||
} else {
|
||||
free_irq(pdev->irq, ndev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user