summaryrefslogtreecommitdiff
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2015-10-13 19:04:28 +0300
committerMike Snitzer <snitzer@redhat.com>2015-10-13 19:20:55 +0300
commitba30670f4d5292c4e7f7980bbd5071f7c4794cdd (patch)
tree397ec1bf9347bb99b47818915322694c3be19ce5 /drivers/md/dm-thin.c
parenta2a678ed4d0d6cb5f36dbabc411d60d9a4f9c435 (diff)
downloadlinux-ba30670f4d5292c4e7f7980bbd5071f7c4794cdd.tar.xz
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 <snitzer@redhat.com> Cc: stable@vger.kernel.org # 3.10+
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
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);