blkdebug: Delete BH in bdrv_aio_cancel
PATCH 1/1 blkdebug: Delete BH in bdrv_aio_cancel
Otherwise error_callback_bh will access the already released acb.
Signed-off-by Fam Zheng <[email protected]>
--- block/blkdebug.c | 4 ++++ 1 file changed, 4 insertions(+)
block/blkdebug.c +4 -0
@@ -449,6 +449,10 @@ static void error_callback_bh(void *opaque)static void blkdebug_aio_cancel (BlockDriverAIOCB *blockacb) {BlkdebugAIOCB *acb =container_of (blockacb, BlkdebugAIOCB, common); +if (acb->bh) { +qemu_bh_delete (acb->bh); + acb->bh =NULL ; + }qemu_aio_release (acb); }
Signature · 1 line
2.0.3
Kevin Wolf
AppliedAm 22.08.2014 um 06:45 hat Fam Zheng geschrieben:
Quoted 3 lines
Otherwise
error_callback_bhwill access the already released acb.Signed-off-by Fam Zheng <[email protected]>
Thanks, applied to the block branch.
Kevin