scsi: fix sign extension problems
commitbd5da23265ba3bb11a9f0913e016e3c3a16abf8e
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Sep 2011 14:47:26 +0000 (9 16:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 20 Sep 2011 10:27:44 +0000 (20 12:27 +0200)
treee290bb3ed2a6d46768776d7f301cfebcc84f99ce
parent7a3f5fe9afbef3c55c1527f61fcfd0b9d4783c0d
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>
hw/scsi-bus.c