diff mbox series

[v2,1/4] libpdbg: Properties for / in system tree are attached to root node

Message ID 20200227042528.165837-2-amitay@ozlabs.org
State Superseded
Headers show
Series Fix handling of attributes for virtual targets | 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 Feb. 27, 2020, 4:25 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/device.c b/libpdbg/device.c
index 66527ed..48f2c58 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -707,7 +707,7 @@  bool pdbg_targets_init(void *fdt)
 	}
 
 	/* Root node needs to be valid when this function returns */
-	pdbg_dt_root = dt_new_node("", NULL, 0);
+	pdbg_dt_root = dt_new_node("", dtb->system.fdt, 0);
 	if (!pdbg_dt_root)
 		return false;