Messages in this thread Patch in this message | | | Subject | [PATCH 10/10] IB/mthca: Fix device removal memory leak | Date | Tue, 20 Sep 2005 15:08:11 -0700 | From | Roland Dreier <> |
| |
Subject: [PATCH] IB/mthca: Fix device removal memory leak From: Michael S. Tsirkin <mst@mellanox.co.il> Date: 1127238888 -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 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
71eea47d853bb0ce0c6befe11b3e08111263170f diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c --- 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(st 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); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |