]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/scsi/scsi-disk.c
scsi-block: fix direction of BYTCHK test for VERIFY commands
[thirdparty/qemu.git] / hw / scsi / scsi-disk.c
index a96319138aca7dd0a54a1177f30786b4edebf29b..5796226704d4da583bcb109f9235e335365f97f8 100644 (file)
@@ -2694,7 +2694,7 @@ static bool scsi_block_is_passthrough(SCSIDiskState *s, uint8_t *buf)
          * for the number of logical blocks specified in the length
          * field).  For other modes, do not use scatter/gather operation.
          */
-        if ((buf[1] & 6) != 2) {
+        if ((buf[1] & 6) == 2) {
             return false;
         }
         break;