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: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