[Crosstoolchain-logs] [device-tree-compiler] 157/357: libfdt: Add missing RW_CHECK_HEADER to fdt_del_node()
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 394e47208df7e3b22c089745695f41966d100f3e
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Thu Oct 18 14:17:25 2007 +1000
libfdt: Add missing RW_CHECK_HEADER to fdt_del_node()
fdt_del_node(), unlike most of the rw functions does not check the
fdt's header with RW_CHECK_HEADER. However, it could make a mess of
things if the conditions in RW_CHECK_HEADER aren't met. So, this
patch adds the omitted check.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
libfdt/fdt_rw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libfdt/fdt_rw.c b/libfdt/fdt_rw.c
index 85b6281..ff74e3c 100644
--- a/libfdt/fdt_rw.c
+++ b/libfdt/fdt_rw.c
@@ -329,6 +329,8 @@ int fdt_del_node(void *fdt, int nodeoffset)
{
int endoffset;
+ RW_CHECK_HEADER(fdt);
+
endoffset = _fdt_node_end_offset(fdt, nodeoffset);
if (endoffset < 0)
return endoffset;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list