Commit 92b3eead authored by Cole Robinson's avatar Cole Robinson Committed by Peter Maydell

qom: Fix crash with qom-list and link properties

Commit 9561fda8 changed the type of
'opaque' for link properties, but missed updating this call site.

./x86_64-softmmu/qemu-system-x86_64 -qmp unix:./qmp.sock,server &
./scripts/qmp/qmp-shell ./qmp.sock
(QEMU) qom-list path=//machine/i440fx/pci.0/child[2]
Reported-by: default avatarMarcin Gibuła <>
Signed-off-by: default avatarCole Robinson <>
Acked-by: default avatarAndreas Färber <>
Signed-off-by: default avatarPeter Maydell <>
parent edc24385
......@@ -1225,7 +1225,8 @@ Object *object_resolve_path_component(Object *parent, const gchar *part)
if (object_property_is_link(prop)) {
return *(Object **)prop->opaque;
LinkProperty *lprop = prop->opaque;
return *lprop->child;
} else if (object_property_is_child(prop)) {
return prop->opaque;
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment