dm: fix idr leak on module removal
authorAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:01 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:01 +0000 (12:32 +0100)
commitd15b774c2920d55e3d58275c97fbe3adc3afde38
tree4801d4e5a70f1e8e57475e6ea2f8e1238b6bbc75
parentbb91bc7bacb906c9f3a9b22744c53fa7564b51ba
dm: fix idr leak on module removal

Destroy _minor_idr when unloading the core dm module.  (Found by kmemleak.)

Cc: stable@kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c