summaryrefslogtreecommitdiff
path: root/cmd/fdt.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-07-12 00:28:46 (GMT)
committerTom Rini <trini@konsulko.com>2017-07-12 00:28:46 (GMT)
commit8d3a25685e4aac7070365a2b3c53c2c81b27930f (patch)
tree7956bf5e00e3490169a7fc41c42a4416da8db51f /cmd/fdt.c
parentd43ef73bf26614af9b01fd57baa1a1fcf24bfade (diff)
parent8c9eaadaaad888e0cd77512553d0d02d476b4dde (diff)
downloadu-boot-8d3a25685e4aac7070365a2b3c53c2c81b27930f.tar.xz
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'cmd/fdt.c')
-rw-r--r--cmd/fdt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/fdt.c b/cmd/fdt.c
index 31a5361..05e19f8 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -284,6 +284,10 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
len = 0;
} else {
ptmp = fdt_getprop(working_fdt, nodeoffset, prop, &len);
+ if (!ptmp) {
+ printf("prop (%s) not found!\n", prop);
+ return 1;
+ }
if (len > SCRATCHPAD) {
printf("prop (%d) doesn't fit in scratchpad!\n",
len);