« Previous | Next » 

Revision 7ef8cf9a

ID7ef8cf9a0861b6f67f5e57428478c31bfd811651

Added by Markus Armbruster about 10 years ago

scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b

The transfer length depends on field BYTCHK, which is encoded in byte
1, bits 1..2. However, the guard for for case BYTCHK=11b doesn't
work, and we get case 01b instead. Fix it.

Note that since emulated scsi-hd fails the command outright, it takes
SCSI passthrough of a device that actually implements VERIFY with
BYTCHK=11b to make the bug bite.

Screwed up in commit d12ad44. Spotted by Coverity.

Cc:
Signed-off-by: Markus Armbruster <>
Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences