aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-07-06 12:15:12 -0600
committerAlex Williamson <alex.williamson@redhat.com>2015-07-06 12:15:12 -0600
commit7d489dcdf5fd71b5052ffd401b869a627e1c751f (patch)
tree3d0055bb15ffd5a0287fa0cb73d3c0a0c0af3a2e /include/exec
parent7edd8e4660beb301d527257f8e04ebec0f841cb0 (diff)
downloadqemu-7d489dcdf5fd71b5052ffd401b869a627e1c751f.zip
qemu-7d489dcdf5fd71b5052ffd401b869a627e1c751f.tar.gz
qemu-7d489dcdf5fd71b5052ffd401b869a627e1c751f.tar.bz2
vfio: fix return type of pread
size_t is an unsigned type, thus the error case is never reached in the below call to pread. If bytes is negative, it will be seen as a very high positive value. Spotted by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions