dm raid1: fix leakage
authorDmitry Monakhov <dmonakhov@openvz.org>
Fri, 19 Oct 2007 21:38:39 +0000 (22:38 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 20 Oct 2007 01:01:01 +0000 (02:01 +0100)
commita72cf737e09da409e047863e38410930dae5fe05
tree66a7b5e897e6625e1690ea42b7944e17f8d3161b
parent815f9e32709b014a459919176a4f0feebd42731e
dm raid1: fix leakage

Add missing 'dm_io_client_destroy' to alloc_context error path.
Reorganize mirror constructor error path in order to prevent
workqueue leakage.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c