summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-03-03 21:42:28 +0000
committerAurelien Jarno <aurelien@aurel32.net>2011-03-03 23:33:26 +0100
commitb46d97f2d2fd7c099b11e610de630918dfd11fa1 (patch)
tree5057d288ec7913ca8654818885c2b34043f38f64 /linux-user
parentefac4154711863128558b5b65486ac79b760367e (diff)
downloadqemu-b46d97f2d2fd7c099b11e610de630918dfd11fa1.tar.gz
qemu-b46d97f2d2fd7c099b11e610de630918dfd11fa1.tar.bz2
qemu-b46d97f2d2fd7c099b11e610de630918dfd11fa1.zip
virtio-net: Fix lduw_p() pointer argument of wrong size
A pointer to a size_t variable was passed as the void * pointer to lduw_p() in virtio_net_receive(). Instead of acting on the 16-bit value this caused failure on big-endian hosts. Avoid this issue in the future by using stw_p() instead. In general we should use ld*_p() for loading from target memory and st*_p() for storing to target memory anyway, not the other way around. Also tighten up a correct use of lduw_p() when stw_p() should be used instead in virtio_net_get_config(). Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions