]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-blk: Check return value of blk_aio_ioctl
authorFam Zheng <famz@redhat.com>
Tue, 17 Feb 2015 09:55:53 +0000 (17:55 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:01:45 +0000 (14:01 +0100)
commita209f4615c6853a226e847810b6c607c71b6a046
treea7da8cb7d2d2a5997cdd757d537b4f8976185935
parent20a1f9d07125bead22efd1dc208b4d14ae1b2a21
virtio-blk: Check return value of blk_aio_ioctl

Since commit 1dc936aa84 (virtio-blk: Use blk_aio_ioctl) we silently lose
the request if blk_aio_ioctl returns NULL (not implemented).

Fix it by directly returning VIRTIO_BLK_S_UNSUPP as we used to do.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[ kwolf: Fixed build error on win32 ]

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c