usb: fix usb_qdev_init error handling.
commitf462141f18ffdd75847f6459ef83d90b831d12c0
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Nov 2011 11:48:14 +0000 (22 12:48 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Nov 2011 13:12:32 +0000 (22 14:12 +0100)
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