qemu-e2k/hw/vfio
Paolo Bonzini 7d489dcdf5 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>
2015-07-06 12:15:12 -06:00
..
Makefile.objs hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
calxeda-xgmac.c hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
common.c exec: move rcu_read_lock/unlock to address_space_translate callers 2015-04-30 16:55:32 +02:00
pci.c vfio: fix return type of pread 2015-07-06 12:15:12 -06:00
platform.c vfio: fix build error on CentOS 5.7 2015-06-18 10:35:59 +01:00