summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-01-29 18:47:39 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-02-22 10:02:23 +0100
commit7ef8cf9a0861b6f67f5e57428478c31bfd811651 (patch)
treedc837d92eb0d893fab0bebd6a402ed43f52bf186 /scripts/qapi-types.py
parent703dd81aca15ef1d91dba013b6b66c6e3ff88628 (diff)
downloadfocaccia-qemu-7ef8cf9a0861b6f67f5e57428478c31bfd811651.tar.gz
focaccia-qemu-7ef8cf9a0861b6f67f5e57428478c31bfd811651.zip
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: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions