]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm era: Fix bitset memory leaks
authorNikos Tsironis <ntsironis@arrikto.com>
Fri, 22 Jan 2021 15:25:54 +0000 (17:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 15:44:23 +0000 (16:44 +0100)
commit1527b4472cbd13cadf543b9c38e698b7336c92b0
treeca9b3ad4bbb220ba257a8289d24703e81a91bcd9
parent06a7ca6fa81b91d643c6bce345855e2061e5ecb6
dm era: Fix bitset memory leaks

commit 904e6b266619c2da5c58b5dce14ae30629e39645 upstream.

Deallocate the memory allocated for the in-core bitsets when destroying
the target and in error paths.

Fixes: eec40579d84873 ("dm: add era target")
Cc: stable@vger.kernel.org # v3.15+
Signed-off-by: Nikos Tsironis <ntsironis@arrikto.com>
Reviewed-by: Ming-Hung Tsai <mtsai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-era-target.c