commit | bd5da23265ba3bb11a9f0913e016e3c3a16abf8e | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Sep 09 16:47:26 2011 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Sep 20 12:27:44 2011 +0200 |
tree | e290bb3ed2a6d46768776d7f301cfebcc84f99ce | |
parent | 7a3f5fe9afbef3c55c1527f61fcfd0b9d4783c0d [diff] |
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>