diff mbox series

[01/17] libpdbg: Only real nodes should have "system-path" property

Message ID 20191031063428.21638-2-amitay@ozlabs.org
State Superseded
Headers show
Series Rework sbefifo library and driver | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (8b4611b5d8e7e2279fe4aa80c892fcfe10aa398d)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Amitay Isaacs Oct. 31, 2019, 6:34 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/device.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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.