Commit 0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe

Authored by Mikulas Patocka
Committed by Alasdair G Kergon
1 parent 3f2412dc85

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/md/dm-exception-store.c
... ... @@ -251,7 +251,7 @@
251 251  
252 252 r = set_chunk_size(tmp_store, argv[2], &ti->error);
253 253 if (r)
254   - goto bad_cow;
  254 + goto bad_ctr;
255 255  
256 256 r = type->ctr(tmp_store, 0, NULL);
257 257 if (r) {