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:
Родитель
c8eee3795d
Коммит
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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче