diff mbox series

[PULL,22/23] qom: set *ambiguous on all paths

Message ID 20241004163415.951106-23-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/23] target/i386: Delete duplicated macro definition CR4_FRED_MASK | expand

Commit Message

Paolo Bonzini Oct. 4, 2024, 4:34 p.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

So the caller contract is simpler.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Link: https://lore.kernel.org/r/20241002080806.2868406-3-marcandre.lureau@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 qom/object.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/qom/object.c b/qom/object.c
index 0adbef29462..222804dcfb5 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -2201,6 +2201,9 @@  Object *object_resolve_path_type(const char *path, const char *typename,
         }
     } else {
         obj = object_resolve_abs_path(object_get_root(), parts + 1, typename);
+        if (ambiguous) {
+            *ambiguous = false;
+        }
     }
 
     g_strfreev(parts);