]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm integrity: call kmem_cache_destroy() in dm_integrity_init() error path
authorMike Snitzer <snitzer@kernel.org>
Tue, 4 Apr 2023 17:34:28 +0000 (13:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:35 +0000 (23:11 +0900)
commitc8c9c50268729bf35f6c9bb1205f490db920454e
tree74a79887735a16c15bf5f16753216e84a104a96d
parent9f1ca07f4b76cdd90939215ba28e7998827614c4
dm integrity: call kmem_cache_destroy() in dm_integrity_init() error path

commit 6b79a428c02769f2a11f8ae76bf866226d134887 upstream.

Otherwise the journal_io_cache will leak if dm_register_target() fails.

Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-integrity.c