]> Git Repo - qemu.git/commit
usb: fail usbdevice_create() when there is no USB bus
authorStefan Hajnoczi <[email protected]>
Sun, 25 Nov 2012 15:49:15 +0000 (16:49 +0100)
committerGerd Hoffmann <[email protected]>
Thu, 29 Nov 2012 07:04:13 +0000 (08:04 +0100)
commitc128d6a6d785eb9235a4f6dbd52f405ab8c60bee
tree9e9c7e33d5eec050825ea1d237855df4fecc12b8
parent6c2d1c32d084320081b0cd047f8cacd6e722d03a
usb: fail usbdevice_create() when there is no USB bus

Report an error instead of segfaulting when attaching a USB device to a
machine with no USB busses:

  $ qemu-system-arm -machine vexpress-a9 \
      -sd Fedora-17-armhfp-vexpress-mmcblk0.img \
      -kernel vmlinuz-3.4.2-3.fc17.armv7hl \
      -initrd initramfs-3.4.2-3.fc17.armv7hl.img \
      -usbdevice disk:format=raw:test.img

Note that the vexpress-a9 machine does not have a USB host controller.

Reported-by: David Abdurachmanov <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/bus.c
This page took 0.025966 seconds and 4 git commands to generate.