Skip to content

Commit

Permalink
dm thin: fix missing pool reference count decrement in pool_ctr error…
Browse files Browse the repository at this point in the history
… path

commit ba30670 upstream.

Fixes: ac8c3f3 ("dm thin: generate event when metadata threshold passed")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mike Snitzer authored and Greg Kroah-Hartman committed Oct 27, 2015
1 parent f3fd6d9 commit 9e7042c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2373,7 +2373,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);
Expand Down

0 comments on commit 9e7042c

Please sign in to comment.