Commit e61f48eb authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Greg Kroah-Hartman

dm exception store: fix failed set_chunk_size error path

commit 0e8c4e4e upstream.

Properly close the device if failing because of an invalid chunk size.
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c5d0c812
......@@ -251,7 +251,7 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
r = set_chunk_size(tmp_store, argv[2], &ti->error);
if (r)
goto bad_cow;
goto bad_ctr;
r = type->ctr(tmp_store, 0, NULL);
if (r) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment