Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba30670f authored by Mike Snitzer's avatar Mike Snitzer
Browse files

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



Fixes: ac8c3f3d ("dm thin: generate event when metadata threshold passed")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.10+
parent a2a678ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);