Re: [Qemu-devel] [PATCH] scsi: fix sign extension problems

2011-09-19 Thread Kevin Wolf
Am 09.09.2011 16:47, schrieb Paolo Bonzini: > 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 Than

[Qemu-devel] [PATCH] scsi: fix sign extension problems

2011-09-09 Thread Paolo Bonzini
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 --- hw/scsi-bus.c | 22 +++--- 1 files cha