X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fimage-fdt.c;h=80e3e63805cdca31ec0c780c45ab79c3ec601dc1;hb=49891df661acf164460ba3ada60fccfc5a53ea71;hp=7e2da7b3b7218d10c40167e1d80c0d678ff47c1a;hpb=0eb25b619699270a8af95c2f76791fd6c4b52972;p=u-boot diff --git a/common/image-fdt.c b/common/image-fdt.c index 7e2da7b3b7..80e3e63805 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -471,6 +471,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, int ret = -EPERM; int fdt_ret; + if (fdt_root(blob) < 0) { + printf("ERROR: root node setup failed\n"); + goto err; + } if (fdt_chosen(blob) < 0) { printf("ERROR: /chosen node create failed\n"); goto err;