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/I8FC2O 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:Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment