[Crosstoolchain-logs] [device-tree-compiler] 20/22: libfdt: fix fdt_stringlist_search()
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:07:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/latest
in repository device-tree-compiler.
commit daa75e8fa5942caa8e97931aed3a1ee0b7edd74b
Author: Masahiro Yamada <yamada.masahiro at socionext.com>
Date: Mon Oct 17 15:08:24 2016 +0900
libfdt: fix fdt_stringlist_search()
If fdt_getprop() fails, negative error code should be returned.
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
libfdt/fdt_ro.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c
index db8d10f..3d00d2e 100644
--- a/libfdt/fdt_ro.c
+++ b/libfdt/fdt_ro.c
@@ -597,7 +597,7 @@ int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
list = fdt_getprop(fdt, nodeoffset, property, &length);
if (!list)
- return -length;
+ return length;
len = strlen(string) + 1;
end = list + length;
--
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