[rtems commit] libmisc/fdt: fix node initialise error with RTEMS_DEBUG
Chris Johns
chrisj at rtems.org
Sat Aug 21 02:49:52 UTC 2021
Module: rtems
Branch: master
Commit: 4dc81f65c7979361c2524836cc60380eaef4f80b
Changeset: http://git.rtems.org/rtems/commit/?id=4dc81f65c7979361c2524836cc60380eaef4f80b
Author: Chris Johns <chrisj at rtems.org>
Date: Sat Aug 21 12:46:32 2021 +1000
libmisc/fdt: fix node initialise error with RTEMS_DEBUG
---
cpukit/libmisc/rtems-fdt/rtems-fdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
index 7747ba9..1cd2377 100644
--- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c
+++ b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
@@ -637,6 +637,8 @@ rtems_fdt_register (const void* dtb, rtems_fdt_handle* handle)
blob->blob = dtb;
blob->name = NULL;
+ rtems_chain_initialize_node(&blob->node);
+
fdt = rtems_fdt_lock ();
rtems_chain_append_unprotected (&fdt->blobs, &blob->node);
More information about the vc
mailing list