diff options
author | Tom Rini <trini@konsulko.com> | 2017-07-12 00:28:46 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-12 00:28:46 (GMT) |
commit | 8d3a25685e4aac7070365a2b3c53c2c81b27930f (patch) | |
tree | 7956bf5e00e3490169a7fc41c42a4416da8db51f /cmd/fdt.c | |
parent | d43ef73bf26614af9b01fd57baa1a1fcf24bfade (diff) | |
parent | 8c9eaadaaad888e0cd77512553d0d02d476b4dde (diff) | |
download | u-boot-8d3a25685e4aac7070365a2b3c53c2c81b27930f.tar.xz |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'cmd/fdt.c')
-rw-r--r-- | cmd/fdt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |