mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
qom: Crash more nicely on object_property_get_link() failure
Pass &error_abort instead of NULL where the returned value is dereferenced or asserted to be non-null. Drop a now redundant assertion. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20200707160613.848843-24-armbru@redhat.com>
This commit is contained in:
parent
90c69fb9fd
commit
552d7f49ee
5 changed files with 10 additions and 7 deletions
|
@ -870,7 +870,8 @@ int spapr_dt_drc(void *fdt, int offset, Object *owner, uint32_t drc_type_mask)
|
|||
continue;
|
||||
}
|
||||
|
||||
obj = object_property_get_link(root_container, prop->name, NULL);
|
||||
obj = object_property_get_link(root_container, prop->name,
|
||||
&error_abort);
|
||||
drc = SPAPR_DR_CONNECTOR(obj);
|
||||
drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue