mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
dm thin: fix missing pool reference count decrement in pool_ctr error path
commitba30670f4dupstream. Fixes:ac8c3f3df("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
334c94072f
commit
ad824a8286
@@ -2109,7 +2109,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);
|
||||
|
||||
Reference in New Issue
Block a user