diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2005-12-09 13:48:50 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-12-09 13:48:50 -0800 |
commit | 52d0df153c987e4ad57d15f5df91848f65858e5d (patch) | |
tree | f6c199504a940994344a1e89bfbeea953f092ef1 /drivers/infiniband/hw/mthca/mthca_memfree.c | |
parent | 0efc4883a6b3de12476cd7a35e638c0a9f5fd75f (diff) | |
download | op-kernel-dev-52d0df153c987e4ad57d15f5df91848f65858e5d.zip op-kernel-dev-52d0df153c987e4ad57d15f5df91848f65858e5d.tar.gz |
IB/mthca: fix memory user DB table leak
Free the memory allocated in mthca_init_user_db_tab() when releasing
the db_tab in mthca_cleanup_user_db_tab().
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_memfree.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_memfree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_memfree.c b/drivers/infiniband/hw/mthca/mthca_memfree.c index d72fe95..5798ed0 100644 --- a/drivers/infiniband/hw/mthca/mthca_memfree.c +++ b/drivers/infiniband/hw/mthca/mthca_memfree.c @@ -485,6 +485,8 @@ void mthca_cleanup_user_db_tab(struct mthca_dev *dev, struct mthca_uar *uar, put_page(db_tab->page[i].mem.page); } } + + kfree(db_tab); } int mthca_alloc_db(struct mthca_dev *dev, enum mthca_db_type type, |