]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
block: Fix multiwrite error handling
authorKevin Wolf <kwolf@redhat.com>
Thu, 1 Apr 2010 20:48:44 +0000 (22:48 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 9 Apr 2010 22:36:49 +0000 (00:36 +0200)
commitaba5288247add3fccc089f21ea8b41f48556c184
treea4fa67b6e0b00575ebe5374e033e1f3ec380d761
parent4f7cb969319be00ffce3dee6426d1b4ae95d2d83
block: Fix multiwrite error handling

When two requests of the same multiwrite batch fail, the callback of all
requests in that batch were called twice. This could have any kind of nasty
effects, in my case it lead to use after free and eventually a segfault.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit cb6d3ca07b8f62b47ef30c6a92caa3e8bd71248b)
block.c