diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-10-13 12:04:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 09:45:59 +0900 |
commit | 9e7042c2fffcd110d4265f6b258f22175673c28f (patch) | |
tree | 6c2f333602dedd25ce71c167bc96ee2949a7f130 | |
parent | f3fd6d9c6a8ffc3d5c4a866d7d2e51c4646ff408 (diff) | |
download | lwn-9e7042c2fffcd110d4265f6b258f22175673c28f.tar.gz lwn-9e7042c2fffcd110d4265f6b258f22175673c28f.zip |
dm thin: fix missing pool reference count decrement in pool_ctr error path
commit ba30670f4d5292c4e7f7980bbd5071f7c4794cdd upstream.
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>
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index c1120eb96d86..b94e4648c199 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2373,7 +2373,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); |