summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sa_query.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-10-24 10:53:25 -0700
committerRoland Dreier <rolandd@cisco.com>2005-10-24 10:53:25 -0700
commit5d7edb3c1a01310725d86f0d83fb3be45685dc82 (patch)
treebbe21779313fea41eb644e0e0f06d5949cd4ed49 /drivers/infiniband/core/sa_query.c
parente7d311da9cba1e113f82176130d3af1be77dc3ee (diff)
downloadblackbird-op-linux-5d7edb3c1a01310725d86f0d83fb3be45685dc82.tar.gz
blackbird-op-linux-5d7edb3c1a01310725d86f0d83fb3be45685dc82.zip
[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/sa_query.c')
-rw-r--r--drivers/infiniband/core/sa_query.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index 262618210c1c..e215cf0478d6 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -975,6 +975,7 @@ static int __init ib_sa_init(void)
static void __exit ib_sa_cleanup(void)
{
ib_unregister_client(&sa_client);
+ idr_destroy(&query_idr);
}
module_init(ib_sa_init);
OpenPOWER on IntegriCloud