projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9786d
)
libfdt: fix fdt_stringlist_search()
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Mon, 17 Oct 2016 11:22:34 +0000
(20:22 +0900)
committer
Tom Rini
<trini@konsulko.com>
Mon, 24 Oct 2016 12:04:40 +0000
(08:04 -0400)
If fdt_getprop() fails, negative error code should be returned.
[ DTC commit:
daa75e8fa5942caa8e97931aed3a1ee0b7edd74b
]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
lib/libfdt/fdt_ro.c
patch
|
blob
|
history
diff --git
a/lib/libfdt/fdt_ro.c
b/lib/libfdt/fdt_ro.c
index fc08981a2c8c86c1d6cf4c9d8d68e98b527c3248..1be9538fd277fc2c78dd630619241a232f79b459 100644
(file)
--- a/
lib/libfdt/fdt_ro.c
+++ b/
lib/libfdt/fdt_ro.c
@@
-576,7
+576,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;