]> git.proxmox.com Git - qemu.git/commit
Fix -usbdevice crash
authorPaul Brook <paul@codesourcery.com>
Wed, 2 Jun 2010 20:19:54 +0000 (17:19 -0300)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 10:44:56 +0000 (12:44 +0200)
commitcc7ed88f281729ed77e6df5254c11d96651eed4d
treea0c0300af55c21d4de69e10465368ff24bbf2c23
parent07442ab4a1ce0bb5939db5b724e26d6da2759875
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 <paul@codesourcery.com>
(cherry picked from commit d44168fffa07fc57e61a37da65e9348661dec887)
hw/usb-bus.c
hw/usb-msd.c
hw/usb-net.c
hw/usb-serial.c