diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-10 15:08:05 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-22 15:07:03 +0100 |
| commit | 0369f06f7464e7fb023f103aff889d28e99c43c4 (patch) | |
| tree | 262e3df065b83a248c40a1a3fa85fbf6780429ac /hw/unin_pci.c | |
| parent | 5b5d34ec9882b29b757f6808693308e52a8e8ba7 (diff) | |
| download | focaccia-qemu-0369f06f7464e7fb023f103aff889d28e99c43c4.tar.gz focaccia-qemu-0369f06f7464e7fb023f103aff889d28e99c43c4.zip | |
scsi: fix segfault with 0-byte disk
When a 0-sized disk is found, READ CAPACITY will return a LUN NOT READY error. However, because it returns -1 instead of zero, the HBA will call scsi_req_continue. This will typically cause a segmentation fault or an assertion failure. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/unin_pci.c')
0 files changed, 0 insertions, 0 deletions