summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-rng.c
diff options
context:
space:
mode:
authorRoger Pau Monne2014-05-23 17:57:47 +0200
committerStefano Stabellini2014-08-01 17:57:28 +0200
commit74bc41511af5c389cd9f37956bd6e7fd7de35c49 (patch)
tree3ac3141be2dad8be31e92eb75dce281cdd5a314f /hw/virtio/virtio-rng.c
parentUpdate version for v2.1.0 release (diff)
downloadqemu-74bc41511af5c389cd9f37956bd6e7fd7de35c49.tar.gz
qemu-74bc41511af5c389cd9f37956bd6e7fd7de35c49.tar.xz
qemu-74bc41511af5c389cd9f37956bd6e7fd7de35c49.zip
xen: fix usage of ENODATA
ENODATA doesn't exist on FreeBSD, so ENODATA errors returned by the hypervisor are translated to ENOENT. Also, the error code is returned in errno if the call returns -1, so compare the error code with the value in errno instead of the value returned by the function. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: xen-devel@lists.xenproject.org Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Anthony Perard <anthony.perard@citrix.com>
Diffstat (limited to 'hw/virtio/virtio-rng.c')
0 files changed, 0 insertions, 0 deletions