diff options
Diffstat (limited to 'hw/virtio-blk.c')
-rw-r--r-- | hw/virtio-blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index e6df9f2..42b766f 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -127,7 +127,7 @@ static void virtio_blk_rw_complete(void *opaque, int ret) return; } - virtio_blk_req_complete(req, VIRTIO_BLK_S_OK); + virtio_blk_req_complete(req, ret ? VIRTIO_BLK_S_IOERR : VIRTIO_BLK_S_OK); } static void virtio_blk_flush_complete(void *opaque, int ret) |