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:
Alexander Gordeev 2014-02-21 16:49:29 +01:00 committed by Jon Mason
parent c8eee3795d
commit 717e8e8bfe

View File

@ -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);