[Pdbg] [PATCH v2 01/24] libpdbg: Only real nodes should have "system-path" property
Amitay Isaacs
amitay at ozlabs.org
Thu Nov 7 13:27:45 AEDT 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libpdbg/device.c b/libpdbg/device.c
index 54a1d1d..f53a548 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -716,6 +716,8 @@ static void pdbg_targets_init_virtual(struct pdbg_target *node, struct pdbg_targ
if (!system_path)
goto skip;
+ assert(!target_is_virtual(node));
+
/*
* A virtual node identifies the attachment point of a node in the
* system tree.
--
2.21.0
More information about the Pdbg
mailing list