aboutsummaryrefslogtreecommitdiffstats
path: root/libfdt/fdt_rw.c
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2010-02-27 20:38:41 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2010-02-27 20:38:41 +0000
commitb7b62f41399c6bc3ef3f9583dbc35cbd0a28101f (patch)
tree4a3082cc96b5344610019e2defaf32a043234c98 /libfdt/fdt_rw.c
parentcb591ed2094735990f9316644c81ffd8534e7228 (diff)
downloadsrc-b7b62f41399c6bc3ef3f9583dbc35cbd0a28101f.tar.gz
src-b7b62f41399c6bc3ef3f9583dbc35cbd0a28101f.zip
Update DTC to git d75b33af676d0beac8398651a7f09037555a550b.vendor/dtc/dtc-d75b33af
Obtained from: git://git.jdl.com/software/dtc.git
Notes
Notes: svn path=/vendor/dtc/dist/; revision=204433 svn path=/vendor/dtc/dtc-d75b33af/; revision=204434; tag=vendor/dtc/dtc-d75b33af
Diffstat (limited to 'libfdt/fdt_rw.c')
-rw-r--r--libfdt/fdt_rw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdt/fdt_rw.c b/libfdt/fdt_rw.c
index 8e7ec4cb7bcd..994037bbbda9 100644
--- a/libfdt/fdt_rw.c
+++ b/libfdt/fdt_rw.c
@@ -406,6 +406,8 @@ int fdt_open_into(const void *fdt, void *buf, int bufsize)
struct_size = 0;
while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END)
;
+ if (struct_size < 0)
+ return struct_size;
}
if (!_fdt_blocks_misordered(fdt, mem_rsv_size, struct_size)) {