X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fimage-fdt.c;h=80e3e63805cdca31ec0c780c45ab79c3ec601dc1;hb=9505c36ed05b94a11c836b1347fd1e4c1918dd50;hp=7e2da7b3b7218d10c40167e1d80c0d678ff47c1a;hpb=1733259d25015c28c47990ec11af99b3f62f811c;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;