aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/quirks.h
diff options
context:
space:
mode:
authorZhengui Li <lizhengui@huawei.com>2019-03-07 17:12:46 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-11 16:33:49 +0100
commit1505421a48a75a36d2b421355d11d7c47d76c6d0 (patch)
treec107abd6ea07f61a921d85d4897e20f0ffd7fada /hw/usb/quirks.h
parent7776ea6b49873ed18a2111e25ed8a6d94bd73db8 (diff)
downloadqemu-1505421a48a75a36d2b421355d11d7c47d76c6d0.zip
qemu-1505421a48a75a36d2b421355d11d7c47d76c6d0.tar.gz
qemu-1505421a48a75a36d2b421355d11d7c47d76c6d0.tar.bz2
scsi-disk: Fix crash if request is invaild or disk is no medium
Qemu will crash with the assertion error that "assert(r->req.aiocb != NULL)" in scsi_read_complete if request is invaild or disk is no medium. The error is below: qemu-kvm: hw/scsi/scsi_disk.c:299: scsi_read_complete: Assertion `r->req.aiocb != NULL' failed. This patch add a funtion scsi_read_complete_noio to fix it. Signed-off-by: Zhengui Li <lizhengui@huawei.com> Message-Id: <1551949966-20092-1-git-send-email-lizhengui@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/usb/quirks.h')
0 files changed, 0 insertions, 0 deletions