]> git.hungrycats.org Git - linux/commitdiff
dm thin: fix missing pool reference count decrement in pool_ctr error path
authorMike Snitzer <snitzer@redhat.com>
Tue, 13 Oct 2015 16:04:28 +0000 (12:04 -0400)
committerJiri Slaby <jslaby@suse.cz>
Wed, 28 Oct 2015 15:38:24 +0000 (16:38 +0100)
commit ba30670f4d5292c4e7f7980bbd5071f7c4794cdd upstream.

Fixes: ac8c3f3df ("dm thin: generate event when metadata threshold passed")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm-thin.c

index d2b3563129c2a7f621e0ce209d43c759b471cf33..5ff934102f302f0b6d50d34f7bc448348a8adca5 100644 (file)
@@ -2153,7 +2153,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);