From: Mike Snitzer Date: Tue, 13 Oct 2015 16:04:28 +0000 (-0400) Subject: dm thin: fix missing pool reference count decrement in pool_ctr error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba30670f4d5292c4e7f7980bbd5071f7c4794cdd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dm thin: fix missing pool reference count decrement in pool_ctr error path Fixes: ac8c3f3df ("dm thin: generate event when metadata threshold passed") Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org # 3.10+ --- diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 6fcbfb063366..3897b90bd462 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -3201,7 +3201,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv) metadata_low_callback, pool); if (r) - goto out_free_pt; + goto out_flags_changed; pt->callbacks.congested_fn = pool_is_congested; dm_table_add_target_callbacks(ti->table, &pt->callbacks);