]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/image-fdt.c
JFFS2: Speed up and fix comparison functions
[karo-tx-uboot.git] / common / image-fdt.c
index 7e2da7b3b7218d10c40167e1d80c0d678ff47c1a..80e3e63805cdca31ec0c780c45ab79c3ec601dc1 100644 (file)
@@ -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;