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-26 09:35:36 -06:00
2012-11-21 09:47:34 +01:00
2012-11-26 09:35:35 -06:00
2012-11-21 14:55:54 +01:00
2012-11-26 09:35:37 -06:00
2012-11-26 09:35:35 -06:00
2012-11-14 20:15:37 -02:00
2012-11-01 19:49:45 +01:00
2012-11-01 19:49:45 +01:00
2012-11-01 17:04:11 +01:00
2012-11-15 01:57:02 +01:00
2012-11-15 01:57:02 +01:00
2012-11-01 19:42:35 +01:00
2012-11-15 01:57:02 +01:00
2012-11-14 18:19:22 +01:00
2012-11-26 09:35:37 -06:00
2012-11-26 09:35:35 -06:00
2012-11-15 01:57:02 +01:00
2012-11-10 12:25:17 +00:00
2012-11-26 09:35:37 -06:00
2012-11-10 13:49:20 +00:00
2012-11-26 09:35:37 -06:00
2012-11-15 02:18:55 +01:00
2012-11-14 18:20:06 +01:00
2012-11-12 16:42:56 +01:00
2012-11-15 14:37:55 +01:00
2012-11-01 11:14:39 -05:00
2012-11-10 13:49:20 +00:00
2012-11-15 01:57:02 +01:00
2012-11-26 09:35:35 -06:00
2012-11-26 09:35:35 -06:00
2012-11-26 09:35:35 -06:00
2012-11-26 09:35:37 -06:00
2012-11-26 09:35:35 -06:00
2012-11-26 09:35:35 -06:00
2012-11-26 09:35:36 -06:00
2012-11-26 09:38:54 -06:00
2012-11-16 11:27:05 +01:00
2012-11-16 08:36:13 -06:00
2012-11-26 09:35:35 -06:00
2012-11-01 11:14:39 -05:00
2012-11-03 12:55:05 +00:00
2012-11-26 09:35:36 -06:00
2012-11-26 09:35:36 -06:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-15 02:18:55 +01:00
2012-11-05 11:54:49 +01:00
2012-11-16 08:36:13 -06:00
2012-11-16 08:36:13 -06:00
2012-11-12 15:00:27 +01:00
2012-11-26 09:35:36 -06:00
2012-11-15 01:57:02 +01:00
2012-11-10 13:49:20 +00:00
2012-11-10 13:49:20 +00:00
2012-11-08 18:41:46 +01:00
2012-11-13 12:27:40 -07:00
2012-11-03 13:26:54 +00:00
2012-11-16 11:27:07 +01:00
2012-11-16 11:27:06 +01:00
2012-11-16 08:36:14 -06:00
2012-11-16 08:36:13 -06:00
2012-11-16 08:36:13 -06:00
2012-11-16 08:36:14 -06:00
2012-11-12 16:44:57 +01:00
2012-11-16 14:10:37 +05:30
2012-11-16 08:36:13 -06:00
2012-11-10 12:26:48 +00:00
2012-11-15 01:57:02 +01:00
2012-11-02 11:12:30 -05:00
2012-11-01 11:12:32 -05:00