Commit ad824a82 authored by Mike Snitzer's avatar Mike Snitzer Committed by Greg Kroah-Hartman

dm thin: fix missing pool reference count decrement in pool_ctr error path

commit ba30670f4d5292c4e7f7980bbd5071f7c4794cdd upstream.

Fixes: ac8c3f3d ("dm thin: generate event when metadata threshold passed")
Signed-off-by: default avatarMike Snitzer <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 334c9407
...@@ -2109,7 +2109,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv) ...@@ -2109,7 +2109,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
metadata_low_callback, metadata_low_callback,
pool); pool);
if (r) if (r)
goto out_free_pt; goto out_flags_changed;
pt->callbacks.congested_fn = pool_is_congested; pt->callbacks.congested_fn = pool_is_congested;
dm_table_add_target_callbacks(ti->table, &pt->callbacks); dm_table_add_target_callbacks(ti->table, &pt->callbacks);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment