block: Fix multiwrite memory leak in error case
commit7eb58a6c556c3880e6712cbf6d24d681261c5095
authorKevin Wolf <kwolf@redhat.com>
Tue, 6 Apr 2010 16:24:07 +0000 (6 18:24 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 9 Apr 2010 22:39:35 +0000 (10 00:39 +0200)
tree5637f04646ae1ba43672ac6c16cf50a853f17b29
parent0f0b604b00851f2c7160b4195136c1fd27418088
block: Fix multiwrite memory leak in error case

Previously multiwrite_user_cb was never called if a request in the multiwrite
batch failed right away because it did set mcb->error immediately. Make it look
more like a normal callback to fix this.

Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block.c