summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_hw.c
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2014-02-21 16:49:29 +0100
committerJon Mason <jon.mason@intel.com>2014-04-07 10:58:14 -0700
commit717e8e8bfe5fdb87e849cd46b03d7877b9d77729 (patch)
treeb8986aa65077da8c8e32857dfd9e2a501b4b8dc8 /drivers/ntb/ntb_hw.c
parentc8eee3795d68d4b7448ce9e6752de379d9fe2c23 (diff)
downloadop-kernel-dev-717e8e8bfe5fdb87e849cd46b03d7877b9d77729.zip
op-kernel-dev-717e8e8bfe5fdb87e849cd46b03d7877b9d77729.tar.gz
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>
Diffstat (limited to 'drivers/ntb/ntb_hw.c')
-rw-r--r--drivers/ntb/ntb_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c
index 2774d35..0e8ae70 100644
--- a/drivers/ntb/ntb_hw.c
+++ b/drivers/ntb/ntb_hw.c
@@ -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);
OpenPOWER on IntegriCloud