diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2009-10-16 18:18:16 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-10-16 18:18:16 -0400 |
commit | 0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe (patch) | |
tree | ad9b86c435b138ceeab8222c96064586b9dda7af /drivers | |
parent | 3f2412dc85260e5aae7ebb03bf50d5b1407e3083 (diff) |
dm exception store: fix failed set_chunk_size error path
Properly close the device if failing because of an invalid chunk size.
Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-exception-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 556acff3952f..e5de7627c52d 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c | |||
@@ -251,7 +251,7 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv, | |||
251 | 251 | ||
252 | r = set_chunk_size(tmp_store, argv[2], &ti->error); | 252 | r = set_chunk_size(tmp_store, argv[2], &ti->error); |
253 | if (r) | 253 | if (r) |
254 | goto bad_cow; | 254 | goto bad_ctr; |
255 | 255 | ||
256 | r = type->ctr(tmp_store, 0, NULL); | 256 | r = type->ctr(tmp_store, 0, NULL); |
257 | if (r) { | 257 | if (r) { |