projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2cae0
)
[PATCH] IB/mthca: Fix device removal memory leak
author
Michael S. Tsirkin
<mst@mellanox.co.il>
Tue, 20 Sep 2005 17:54:48 +0000
(10:54 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Tue, 20 Sep 2005 17:54:48 +0000
(10:54 -0700)
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>
drivers/infiniband/hw/mthca/mthca_qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mthca/mthca_qp.c
b/drivers/infiniband/hw/mthca/mthca_qp.c
index eaa521857630a6433e419812fe2f70de1f50b14f..5fa00669f9b8c43d59e9dd70fe1469d707ceb600 100644
(file)
--- 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)
for (i = 0; i < 2; ++i)
mthca_CONF_SPECIAL_QP(dev, i, 0, &status);
+ mthca_array_cleanup(&dev->qp_table.qp, dev->limits.num_qps);
mthca_alloc_cleanup(&dev->qp_table.alloc);
}