Paolo Bonzini b5007bcc97 hmp: do not crash on invalid SCSI hotplug
Commit 0d93692 (qdev: Convert busses to QEMU Object Model, 2012-05-02)
removed a check on the type of the bus where a SCSI disk is hotplugged.
However, hot-plugging to the wrong kind of device now causes a crash
due to either a NULL pointer dereference (avoided by the previous patch)
or a failed QOM cast.

Instead, in this case we need to use object_dynamic_cast and check for
the result, similar to what was done before that commit.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-11-26 09:38:54 -06:00
2012-11-19 10:48:32 +01:00
2012-11-20 15:38:37 +01:00
2012-11-01 13:10:06 +01:00
2012-10-24 10:26:22 +02:00
2012-11-26 09:37:51 -06:00
2012-10-05 16:07:49 -05:00
2012-11-01 13:10:06 +01:00
2012-11-02 18:34:59 +01:00
2012-11-05 11:54:49 +01:00
2012-10-31 04:12:23 +01:00
2012-11-01 19:49:45 +01:00
2012-10-31 04:12:23 +01:00
2012-10-31 04:12:23 +01:00
2012-10-23 08:58:25 -05:00
2012-10-23 08:58:25 -05:00
2012-11-10 13:49:20 +00:00
2012-11-10 13:49:20 +00:00
2012-11-14 18:19:21 +01:00
2012-10-23 08:58:25 -05:00
2012-10-23 08:58:25 -05:00
2012-11-12 14:38:29 +01:00
2012-11-12 14:38:29 +01:00
2012-10-23 08:58:25 -05:00
2012-10-29 18:25:22 +02:00
2012-11-10 13:24:39 +00:00
2012-10-23 08:58:25 -05:00
2012-11-13 10:34:50 +01:00
2012-11-14 18:19:21 +01:00
2012-11-10 13:49:20 +00:00
2012-10-31 09:45:47 +01:00
2012-11-01 19:49:44 +01:00
2012-11-24 19:52:00 +00:00
2012-11-14 18:19:21 +01:00
2012-11-16 11:27:32 +01:00
2012-11-19 13:51:39 -06:00
2012-10-23 08:58:25 -05:00
2012-10-03 13:48:45 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.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%