summaryrefslogtreecommitdiff
path: root/hw/scsi-generic.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-08-03 10:49:04 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-12 08:27:00 -0500
commitfcd07d0f68a120efa58d2baa6dfc82a50ea53cb4 (patch)
tree9012a76cf759a5b265b913da410bb34d78c15ae8 /hw/scsi-generic.c
parent16f461bd1373a08dc61c627c65c3c6a3b982e682 (diff)
downloadqemu-fcd07d0f68a120efa58d2baa6dfc82a50ea53cb4.tar.gz
qemu-fcd07d0f68a120efa58d2baa6dfc82a50ea53cb4.tar.bz2
qemu-fcd07d0f68a120efa58d2baa6dfc82a50ea53cb4.zip
scsi-disk: no need to call scsi_req_data on a short read
In fact, if the HBA's transfer_data callback goes on with scsi_req_continue the request will be completed successfully instead of showing a failure. It can even cause a segmentation fault. An easy way to trigger it is "eject -f cd" during installation (during media test if the installer does something like that). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions