]> git.proxmox.com Git - mirror_qemu.git/commit
usb: fix usb_qdev_init error handling.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Nov 2011 11:48:14 +0000 (12:48 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Nov 2011 13:12:32 +0000 (14:12 +0100)
commitf462141f18ffdd75847f6459ef83d90b831d12c0
tree5b574f35441db5b8a229561f72840cbc457761f7
parent2af2a1b8d05a1a64c5005ed930137632b9d5aa22
usb: fix usb_qdev_init error handling.

qdev doesn't call the ->exit callback on ->init failures, so we have to
take care ourself that we cleanup property on errors.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-bus.c