aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-balloon.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2011-04-07 13:02:03 +1000
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-07 14:25:53 +0100
commit4e37bfc1f0fcd17e48bfae233e0b45066830e126 (patch)
tree3b6c94154cce64cb2c7a88748675befc80296ed4 /hw/virtio-balloon.c
parentfa227023f044552ec48ca851411dba2f268a912c (diff)
virtio-9p: fixed LE-to-host conversion bug when QEMU is called from guest
The 9p code already contains an attempt at the necessary endian conversions, but it's broken. The code which does conversion from host to guest does it correctly and this code was copied to the function which does guest to host conversion. However the copied code hasn't been correctly updated, so it first endian converts some garbage on the stack and then overwrites it with a field from incoming packet without conversion. The patch fixes the mistakes. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/virtio-balloon.c')
0 files changed, 0 insertions, 0 deletions