From: Mikulas Patocka Properly close the device if failing because of an invalid chunk size. Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon Index: linux-2.6.32-rc3/drivers/md/dm-exception-store.c =================================================================== --- linux-2.6.32-rc3.orig/drivers/md/dm-exception-store.c +++ linux-2.6.32-rc3/drivers/md/dm-exception-store.c @@ -235,7 +235,7 @@ int dm_exception_store_create(struct dm_ 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) {