Gonglei 537e572a7f uhci: fix segfault when hot-unplugging uhci controller
When hot-unplugging the usb controllers (ehci/uhci),
we have to clean all resouce of these devices,
involved registered reset handler. Otherwise, it
may cause NULL pointer access and/or segmentation fault
if we reboot the guest os after hot-unplugging.

Let's hook up reset via DeviceClass->reset() and drop
the qemu_register_reset() call. Then Qemu will register
and unregister the reset handler automatically.

Cc: qemu-stable <qemu-stable@nongnu.org>
Reported-by: Lidonglin <lidonglin@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2015-03-20 08:50:01 +01:00
2015-03-04 13:00:36 -05:00
2015-02-06 16:11:38 +00:00
2015-03-16 13:29:12 +05:30
2015-03-16 19:19:04 +00:00
2015-03-09 09:14:28 +00:00
2015-03-13 14:03:31 +00:00
2015-02-23 10:56:09 -05:00
2015-03-16 12:10:30 -04:00
2015-03-08 06:43:32 +00:00
2015-03-17 11:10:48 +01:00
2015-02-16 17:30:19 +01:00
2015-03-12 09:13:07 +00:00
2015-03-16 14:31:07 +01:00
2015-03-16 14:31:07 +01:00
2015-03-16 14:31:07 +01:00
2015-03-12 09:13:07 +00:00
2015-03-10 10:49:25 +01:00
2015-02-05 17:16:14 +01:00
2015-02-16 14:36:03 +00:00
2015-03-16 14:31:07 +01:00
2015-02-16 15:07:19 +00:00
2015-03-16 14:31:07 +01:00
2015-03-10 11:33:35 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2015-03-12 15:49:57 +01:00

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

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%