diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-07-11 14:04:08 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-07-18 15:14:36 +0200 |
commit | 83b4fe0ed5c27dfe181c7c746456ba33e4f7ef2b (patch) | |
tree | 8e108282a66ad4f35d8cba7c73738303046534c0 /blockdev.c | |
parent | 947231ad3b479de82d8f5ec185e2d00f3c96edcd (diff) | |
download | qemu-83b4fe0ed5c27dfe181c7c746456ba33e4f7ef2b.zip |
scsi-disk: bdrv_attach_dev() for empty CD-ROM
If no drive=... option is passed (for an empty drive), we don't only
lack the BlockBackend normally created by parse_drive(), but we also
need to manually call blk_attach_dev().
This fixes at least a segfault when unplugging such devices, the bug
that they didn't show up in query-block, and probably some more
problems.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions