dm exception store: fix failed set_chunk_size error path
commite61f48eb0ac00c6d73dd53b3d79abe2c578328dc
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 16 Oct 2009 22:18:16 +0000 (16 23:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:22:06 +0000 (9 16:22 -0800)
treedcb7c1f044fa4d163d39e56bf451911bf3789730
parentc5d0c81248f5b0d14f464f4170f76fb756df5ac0
dm exception store: fix failed set_chunk_size error path

commit 0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe upstream.

Properly close the device if failing because of an invalid chunk size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-exception-store.c