diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-10-13 19:04:28 +0300 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-11-13 21:19:44 +0300 |
commit | 587075664c04347cf92844d11a0463951ff4514d (patch) | |
tree | 1b00159197c816cb84275f618251fd4050a46f22 /drivers/md/dm-thin.c | |
parent | a2893d2865ff0c4dc5c2bf599746b64a8c6b5dc5 (diff) | |
download | linux-587075664c04347cf92844d11a0463951ff4514d.tar.xz |
dm thin: fix missing pool reference count decrement in pool_ctr error path
[ Upstream commit ba30670f4d5292c4e7f7980bbd5071f7c4794cdd ]
Fixes: ac8c3f3df ("dm thin: generate event when metadata threshold passed")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-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 0801e35b9940..a7c9685c52f6 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2596,7 +2596,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); |