dm exception store: fix failed set_chunk_size error path
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 16 Oct 2009 22:18:16 +0000 (23:18 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 16 Oct 2009 22:18:16 +0000 (23:18 +0100)
commit0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe
treead9b86c435b138ceeab8222c96064586b9dda7af
parent3f2412dc85260e5aae7ebb03bf50d5b1407e3083
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>
drivers/md/dm-exception-store.c