diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-10-13 19:04:28 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-10-28 18:38:24 +0300 |
commit | 2fd9f839bad45c329b9362ed653db5a627309e12 (patch) | |
tree | 1f5de466ebb0459a6698e712a5e7910eae162fc5 /drivers/md | |
parent | e798f526070137b3c5489f668d44e18ffe208c08 (diff) | |
download | linux-2fd9f839bad45c329b9362ed653db5a627309e12.tar.xz |
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/md')
-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 d2b3563129c2..5ff934102f30 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2153,7 +2153,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); |