diff options
author | Ekaterina Tumanova <tumanova@linux.vnet.ibm.com> | 2015-03-04 11:02:16 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-10 14:02:24 +0100 |
commit | df1d4c341a735334de23513f17bf110c8c49b3e7 (patch) | |
tree | e7e6a845aef91ef58b6df4c017f4d247049451b8 /hw/scsi/esp-pci.c | |
parent | f0ab6f109630940146cbaf47d0cd99993ddba824 (diff) | |
download | qemu-df1d4c341a735334de23513f17bf110c8c49b3e7.zip qemu-df1d4c341a735334de23513f17bf110c8c49b3e7.tar.gz qemu-df1d4c341a735334de23513f17bf110c8c49b3e7.tar.bz2 |
scsi-hd: fix property unset case
Commit c53659f0 ("BlockConf: Call backend functions to detect geometry
and blocksizes") causes a segmentation fault on the invalid
configuration of a scsi device without a drive.
Let's check for conf.blk before calling blkconf_blocksizes. The error
will be handled later on in scsi_realize anyway.
Reported-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi/esp-pci.c')
0 files changed, 0 insertions, 0 deletions