mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
[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>
This commit is contained in:
parent
8d2cae0651
commit
71eea47d85
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue