projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fdt: Add a check to fdt_print() for coverity
[platform/kernel/u-boot.git]
/
cmd
/
fdt.c
diff --git
a/cmd/fdt.c
b/cmd/fdt.c
index
dc00520
..
31a5361
100644
(file)
--- a/
cmd/fdt.c
+++ b/
cmd/fdt.c
@@
-975,7
+975,7
@@
static int fdt_print(const char *pathp, char *prop, int depth)
/* no property value */
printf("%s %s\n", pathp, prop);
return 0;
- } else if (len > 0) {
+ } else if (
nodep &&
len > 0) {
printf("%s = ", prop);
print_data (nodep, len);
printf("\n");