]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: destroy migration_cache if cache target registration failed
authorShenghui Wang <shhuiw@foxmail.com>
Sun, 7 Oct 2018 06:45:41 +0000 (14:45 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Oct 2018 17:53:03 +0000 (13:53 -0400)
commit30f2fd9821ec45e5f9a073d4a9a4a838d4c255e6
tree4a9cff7ad26a5797094f792bed90ccb5695f6247
parentcc57feb3b8b4dd2db99836ab928838821c89c4fc
dm cache: destroy migration_cache if cache target registration failed

Commit e0dc37507dc38 ("dm: fix various targets to dm_register_target
after module __init resources created") inadvertently introduced this
bug when it moved dm_register_target() after the call to KMEM_CACHE().

Fixes: e0dc37507dc38 ("dm: fix various targets to dm_register_target after module __init resources created")
Cc: stable@vger.kernel.org
Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c