]> Git Repo - qemu.git/commit - hw/usb-bus.c
Fix -usbdevice crash
authorPaul Brook <[email protected]>
Thu, 25 Feb 2010 13:29:06 +0000 (13:29 +0000)
committerPaul Brook <[email protected]>
Thu, 25 Feb 2010 13:29:06 +0000 (13:29 +0000)
commitd44168fffa07fc57e61a37da65e9348661dec887
treef3a41713d7a4e7cdef21cd3a7c2f5a49104f2368
parent23f2166d736dcf7854e674a160694b151ee0725b
Fix -usbdevice crash

If -usbdevice is used on a machine with no USB busses, usb_create
will fail and return NULL.  Patch below handles this failure gracefully
rather than crashing when we try to init the device.

Signed-off-by: Paul Brook <[email protected]>
hw/usb-bus.c
hw/usb-msd.c
hw/usb-net.c
hw/usb-serial.c
This page took 0.027177 seconds and 4 git commands to generate.