Commit 9e2e21da authored by Mike Snitzer's avatar Mike Snitzer Committed by sanglipeng
Browse files

dm integrity: call kmem_cache_destroy() in dm_integrity_init() error path

stable inclusion
from stable-v5.10.180
commit 44f29e93a55b544dc961b6f8b4e93abaeaafb9ee
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=44f29e93a55b544dc961b6f8b4e93abaeaafb9ee



--------------------------------

commit 6b79a428 upstream.

Otherwise the journal_io_cache will leak if dm_register_target() fails.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent db05eefd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment