[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 2/5] ide/atapi: blk_aio_readv may return NULL
From: |
Peter Lieven |
Subject: |
[Qemu-block] [PATCH 2/5] ide/atapi: blk_aio_readv may return NULL |
Date: |
Mon, 21 Sep 2015 14:25:25 +0200 |
Signed-off-by: Peter Lieven <address@hidden>
---
hw/ide/atapi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 9257e1c..b209ed9 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -371,6 +371,10 @@ static void ide_atapi_cmd_read_dma_cb(void *opaque, int
ret)
s->bus->dma->aiocb = blk_aio_readv(s->blk, (int64_t)s->lba << 2,
&s->bus->dma->qiov, n * 4,
ide_atapi_cmd_read_dma_cb, s);
+ if (s->bus->dma->aiocb == NULL) {
+ ide_atapi_io_error(s, -EIO);
+ goto eot;
+ }
return;
eot:
--
1.9.1
- [Qemu-block] [PATCH 0/5] ide: avoid main-loop hang on CDROM/NFS failure, Peter Lieven, 2015/09/21
- [Qemu-block] [PATCH 2/5] ide/atapi: blk_aio_readv may return NULL,
Peter Lieven <=
- [Qemu-block] [PATCH 1/5] ide/atapi: make PIO read requests async, Peter Lieven, 2015/09/21
- [Qemu-block] [PATCH 4/5] ide/atapi: enable cancelable requests, Peter Lieven, 2015/09/21
- [Qemu-block] [PATCH 3/5] ide: add support for cancelable read requests, Peter Lieven, 2015/09/21
- [Qemu-block] [PATCH 5/5] block/nfs: cache allocated filesize for read-only files, Peter Lieven, 2015/09/21
- Re: [Qemu-block] [Qemu-devel] [PATCH 0/5] ide: avoid main-loop hang on CDROM/NFS failure, John Snow, 2015/09/21