Stefan Hajnoczi db3a5ed7e4 usb: fix usb_qdev_init() error handling again
Commit f462141f18 introduced clean up code
when usb_qdev_init() fails.  Unfortunately it calls .handle_destroy()
when .init() was never invoked or failed.  This can lead to crashes when
.handle_destroy() tries to clean up things that were never initialized.

This patch is careful to undo only those steps that completed along the
usb_qdev_init() code path.  It's not as pretty as the unified error
handling in f462141f18 but it's necessary.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-12-15 09:27:23 -06:00
…
2011-12-06 11:40:00 -02:00
…
…
…
…
…
…
…
…
2011-12-02 10:50:57 +00:00
…
…
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
…
…
…
…
…
…
…
…
…
…
…
2011-12-06 11:40:00 -02:00
…
2011-12-06 10:07:04 +00:00
2011-12-15 09:20:50 -06:00
2011-12-15 09:20:50 -06:00
…
…
…
…
…
2011-12-05 14:51:38 +01:00
…
…
…
…
…
…
2011-12-02 10:50:57 +00:00
…
…
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-02 10:50:57 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-12-09 11:25:22 +00:00
2011-12-02 10:50:57 +00:00
…
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:56 +00:00
2011-12-06 11:40:00 -02:00
2011-12-15 09:20:47 -06:00
…
…
…
2011-12-06 11:40:01 -02:00
2011-12-02 10:50:57 +00:00
…
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
…
…
2011-12-06 09:56:41 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-12-02 10:50:57 +00:00
2011-12-15 09:20:50 -06:00
2011-12-15 09:20:50 -06:00
2011-12-06 10:07:04 +00:00
2011-11-21 14:58:48 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-12-11 17:50:43 -06:00
…
…
…
…
…
…
…
…
…
2011-12-05 14:51:38 +01:00
…
…
…
…

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
722 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%