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

Fixes: ac8c3f3 ("dm thin: generate event when metadata threshold passed")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.10+
  • Loading branch information
Mike Snitzer committed Oct 13, 2015
1 parent a2a678e commit ba30670
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 @@ -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);
Expand Down

0 comments on commit ba30670

Please sign in to comment.