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:53:42 +0900 |
commit | 15c6fd0e468f82b59799ab5e066dcf3e52cc7a36 (patch) | |
tree | e6b75fd8c5c20edda73301ef029a2cbdfdaa1d80 | |
parent | 62fb74e9f7e25279e72a82571cbac9c7baf37958 (diff) | |
download | lwn-15c6fd0e468f82b59799ab5e066dcf3e52cc7a36.tar.gz lwn-15c6fd0e468f82b59799ab5e066dcf3e52cc7a36.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 75aef240c2d1..493c38e08bd2 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -3255,7 +3255,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); |