提交 ba30670f 编写于 作者: M Mike Snitzer

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: NMike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.10+
上级 a2a678ed
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册