]> git.baikalelectronics.ru Git - kernel.git/commit
dm era: Fix bitset memory leaks
authorNikos Tsironis <ntsironis@arrikto.com>
Fri, 22 Jan 2021 15:25:54 +0000 (17:25 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 10 Feb 2021 18:32:03 +0000 (13:32 -0500)
commitbea86b0bb281bb599c869f84b5f17580a42b715b
tree89b84662a063905f197b0640013def1ad588f26d
parent121eb2d6860c67b4e05f5416354e4e46d96fcbd3
dm era: Fix bitset memory leaks

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

Fixes: b83b01ee643a86 ("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>
drivers/md/dm-era-target.c