diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-10-24 10:53:25 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-10-24 10:53:25 -0700 |
commit | 5d7edb3c1a01310725d86f0d83fb3be45685dc82 (patch) | |
tree | bbe21779313fea41eb644e0e0f06d5949cd4ed49 /drivers/infiniband/core/cm.c | |
parent | e7d311da9cba1e113f82176130d3af1be77dc3ee (diff) | |
download | kernel_samsung_smdk4412-5d7edb3c1a01310725d86f0d83fb3be45685dc82.zip kernel_samsung_smdk4412-5d7edb3c1a01310725d86f0d83fb3be45685dc82.tar.gz kernel_samsung_smdk4412-5d7edb3c1a01310725d86f0d83fb3be45685dc82.tar.bz2 |
[IB] Add idr_destroy() calls on module unload
Add idr_destroy() calls to the module_exit() functions of the four IB
driver modules that use idrs, so we don't leak idr_layer_cache objects
when these modules are unloaded.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 54db6d4..151ef83 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -3323,6 +3323,7 @@ static void __exit ib_cm_cleanup(void) flush_workqueue(cm.wq); destroy_workqueue(cm.wq); ib_unregister_client(&cm_client); + idr_destroy(&cm.local_id_table); } module_init(ib_cm_init); |