aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2005-09-20 13:54:48 -0400
committerRoland Dreier <rolandd@cisco.com>2005-09-20 13:54:48 -0400
commit71eea47d853bb0ce0c6befe11b3e08111263170f (patch)
treeff675d57b8d3dc6688a2016b41b0d41b54611231 /drivers
parent8d2cae0651502028bf64844508ab18528bbd65c2 (diff)
[PATCH] IB/mthca: Fix device removal memory leak
Clean up QP table array on device removal. Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_qp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c
index eaa521857630..5fa00669f9b8 100644
--- a/drivers/infiniband/hw/mthca/mthca_qp.c
+++ b/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -2123,5 +2123,6 @@ void __devexit mthca_cleanup_qp_table(struct mthca_dev *dev)
2123 for (i = 0; i < 2; ++i) 2123 for (i = 0; i < 2; ++i)
2124 mthca_CONF_SPECIAL_QP(dev, i, 0, &status); 2124 mthca_CONF_SPECIAL_QP(dev, i, 0, &status);
2125 2125
2126 mthca_array_cleanup(&dev->qp_table.qp, dev->limits.num_qps);
2126 mthca_alloc_cleanup(&dev->qp_table.alloc); 2127 mthca_alloc_cleanup(&dev->qp_table.alloc);
2127} 2128}