summary refs log tree commit diff stats
path: root/hw/misc/hyperv_testdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-10-13 11:49:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-19 13:44:12 +0200
commite6aa5ba4ac423dd282c831402110970ee278392e (patch)
treeb258493db8888e443164a005e313b955431fbabb /hw/misc/hyperv_testdev.c
parenta519e3894436501c5c6da5e82f6b867d2c05afb5 (diff)
downloadfocaccia-qemu-e6aa5ba4ac423dd282c831402110970ee278392e.tar.gz
focaccia-qemu-e6aa5ba4ac423dd282c831402110970ee278392e.zip
scsi-disk: fix double completion of failing passthrough requests
If a command fails with a sense that scsi_sense_buf_to_errno converts to
ECANCELED/EAGAIN/ENOTCONN or with a unit attention, scsi_req_complete is
called twice.  This caused a crash.

Reported-by: Wangguang <wang.guangA@h3c.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/hyperv_testdev.c')
0 files changed, 0 insertions, 0 deletions