]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi-block: fix direction of BYTCHK test for VERIFY commands
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Jan 2017 17:20:28 +0000 (18:20 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:39 +0000 (12:10 -0500)
commit9f6cb916f2f72175bb8c7757662d9f50616fc4c0
treeeeb915b299a1a8ec0016916f23eae8c2cf121ee0
parentdc659e3aeaec3d195a76c06c0c1089e4a4ab47b1
scsi-block: fix direction of BYTCHK test for VERIFY commands

The direction is wrong; scsi_block_is_passthrough returns
false for commands that *can* use sglists.

Reported-by: Zhang Qian <zhangqian@sangfor.com.cn>
Fixes: 8fdc7839e40f43a426bc7e858cf1dbfe315a3804
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 1f8af0d186abf9ef775a74d41bf2852ed8d59b63)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/scsi-disk.c