[IB] Add idr_destroy() calls on module unload
authorRoland Dreier <rolandd@cisco.com>
Mon, 24 Oct 2005 17:53:25 +0000 (10:53 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 24 Oct 2005 17:53:25 +0000 (10:53 -0700)
commit5d7edb3c1a01310725d86f0d83fb3be45685dc82
treebbe21779313fea41eb644e0e0f06d5949cd4ed49
parente7d311da9cba1e113f82176130d3af1be77dc3ee
[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>
drivers/infiniband/core/cm.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/ucm.c
drivers/infiniband/core/uverbs_main.c