aboutsummaryrefslogtreecommitdiff
path: root/hw/char
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-06-20 19:36:15 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-06-28 19:05:35 +0200
commit86933b4e7879e427e03365bf352c0964640cb37b (patch)
tree83d44b80179357c1b55f29d76bff9fb79a52e47b /hw/char
parent50fa332516d5e42695811f43396b749185e21b9c (diff)
downloadqemu-86933b4e7879e427e03365bf352c0964640cb37b.zip
qemu-86933b4e7879e427e03365bf352c0964640cb37b.tar.gz
qemu-86933b4e7879e427e03365bf352c0964640cb37b.tar.bz2
pr-helper: fix assertion failure on failed multipath PERSISTENT RESERVE IN
The response size is expected to be zero if the SCSI status is not "GOOD", but nothing was resetting it. This can be reproduced simply by "sg_persist -s /dev/sdb" where /dev/sdb in the guest is a scsi-block device corresponding to a multipath device on the host. Before: PR in (Read full status): Aborted command and on the host: prh_write_response: Assertion `resp->sz == 0' failed. After: PR in (Read full status): bad field in cdb or parameter list (perhaps unsupported service action) Reported-by: Jiri Belka <jbelka@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/char')
0 files changed, 0 insertions, 0 deletions