artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b707b4
)
Insert new child nodes at the end.
author
kettenis
<kettenis@openbsd.org>
Sat, 25 Aug 2018 10:41:38 +0000
(10:41 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 25 Aug 2018 10:41:38 +0000
(10:41 +0000)
ok patrick@
sys/arch/arm64/stand/efiboot/fdt.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/stand/efiboot/fdt.c
b/sys/arch/arm64/stand/efiboot/fdt.c
index
4927247
..
7f9f0a2
100644
(file)
--- a/
sys/arch/arm64/stand/efiboot/fdt.c
+++ b/
sys/arch/arm64/stand/efiboot/fdt.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fdt.c,v 1.
3 2017/08/23 18:03:54
kettenis Exp $ */
+/* $OpenBSD: fdt.c,v 1.
4 2018/08/25 10:41:38
kettenis Exp $ */
/*
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
@@
-309,6
+309,10
@@
fdt_node_add_node(void *node, char *name, void **child)
ptr = skip_node_name(ptr + 1);
ptr = skip_props(ptr);
+ /* skip children */
+ while (betoh32(*ptr) == FDT_NODE_BEGIN)
+ ptr = skip_node(ptr);
+
memmove((char *)ptr + len, ptr, tree.end - (char *)ptr);
tree.struct_size += len;
if (tree.strings > tree.tree)