dm persistent data: fix shadow_info_leak on dm_tm_destroy
authorMike Snitzer <snitzer@redhat.com>
Tue, 3 Jul 2012 11:55:33 +0000 (12:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 3 Jul 2012 11:55:33 +0000 (12:55 +0100)
commit25d7cd6faa7ae6ed2565617c3ee2500ccb8a9f7f
treeb25b921b508994e51c7d2f03fe9ca1a055a59e77
parent0d200aefd4ac51787b6b80de1bb7ce93bccd59f6
dm persistent data: fix shadow_info_leak on dm_tm_destroy

Cleanup the shadow table before destroying the transaction manager.

Reference: leak was identified with kmemleak when running
test_discard_random_sectors in the thinp-test-suite.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/persistent-data/dm-transaction-manager.c