summaryrefslogtreecommitdiffstats
path: root/posix-aio-compat.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-09-09 16:47:26 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-20 12:27:44 +0200
commitbd5da23265ba3bb11a9f0913e016e3c3a16abf8e (patch)
treee290bb3ed2a6d46768776d7f301cfebcc84f99ce /posix-aio-compat.c
parent7a3f5fe9afbef3c55c1527f61fcfd0b9d4783c0d (diff)
downloadhqemu-bd5da23265ba3bb11a9f0913e016e3c3a16abf8e.zip
hqemu-bd5da23265ba3bb11a9f0913e016e3c3a16abf8e.tar.gz
scsi: fix sign extension problems
When assigning a 32-bit value to cmd->xfer (which is 64-bits) it can be erroneously sign extended because the intermediate 32-bit computation is signed. Fix this by standardizing on the ld*_be_p functions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'posix-aio-compat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud