unicorn/qemu/qom
Eduardo Habkost 570c064065
qom: Fix ambiguous path detection when ambiguous=NULL
object_resolve_path*() ambiguous path detection breaks when
ambiguous==NULL and the object tree have 3 objects of the same type and
only 2 of them are under the same parent. e.g.:

/container/obj1 (TYPE_FOO)
/container/obj2 (TYPE_FOO)
/obj2 (TYPE_FOO)

With the above tree, object_resolve_path_type("", TYPE_FOO, NULL) will
incorrectly return /obj2, because the search inside "/container" will
return NULL, and the match at "/obj2" won't be detected as ambiguous.

Fix that by always calling object_resolve_partial_path() with a non-NULL
ambiguous parameter.

Backports commit ebcc479eee740937e70a94a468effcf2126a572b from qemu
2018-03-03 22:49:21 -05:00
..
container.c qom: Allow properties to be registered against classes 2018-02-21 21:00:56 -05:00
cpu.c qom/cpu: Silence an unused variable warning 2018-03-03 21:37:04 -05:00
Makefile.objs import 2015-08-21 15:04:50 +08:00
object.c qom: Fix ambiguous path detection when ambiguous=NULL 2018-03-03 22:49:21 -05:00
qom-qobject.c qapi: Drop unused non-strict qobject input visitor 2018-03-02 12:14:52 -05:00