Commit 7a28b1db authored by Mike Snitzer's avatar Mike Snitzer Committed by sanglipeng
Browse files

dm clone: call kmem_cache_destroy() in dm_clone_init() error path

stable inclusion
from stable-v5.10.180
commit 717ceb487bc30bc32ccb99fa5966a4f5f4e84686
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

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



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

commit 6827af4a upstream.

Otherwise the _hydration_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 4b22787c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment