diff --git a/hw/ide/core.c b/hw/ide/core.c index 5cafcf5287..40b6cc8c62 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -649,7 +649,7 @@ void ide_cancel_dma_sync(IDEState *s) #ifdef DEBUG_IDE printf("%s: draining all remaining requests", __func__); #endif - blk_drain_all(); + blk_drain(s->blk); assert(s->bus->dma->aiocb == NULL); } }