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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:26 +0000 (09:04 -0700)
commit672c65731d62930439b91ff8a160830085d42a51
treeec07304750f68c74ffcdafbe9e82cfec24e657d1
parenta712c8097b28c4c4f705db4102c0eed117806162
dm persistent data: fix shadow_info_leak on dm_tm_destroy

commit 25d7cd6faa7ae6ed2565617c3ee2500ccb8a9f7f upstream.

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>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/persistent-data/dm-transaction-manager.c