]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootm: fix 'memory-fixup' for vxWorks boot
authorHannes Schmelzer <hannes.schmelzer@br-automation.com>
Fri, 4 May 2018 08:49:11 +0000 (10:49 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 May 2018 00:38:34 +0000 (20:38 -0400)
The check for having a memory node within the fdt blob is made wrong, we
fix this here.

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
arch/arm/lib/bootm.c

index b27266c7a1933c625031e8b67ddbb479d1cb74bc..c3c1d2fdfa2d8ab9d4eacd4a8218f3455fe3a8fc 100644 (file)
@@ -437,7 +437,7 @@ void boot_prep_vxworks(bootm_headers_t *images)
 
        if (images->ft_addr) {
                off = fdt_path_offset(images->ft_addr, "/memory");
-               if (off < 0) {
+               if (off > 0) {
                        if (arch_fixup_fdt(images->ft_addr))
                                puts("## WARNING: fixup memory failed!\n");
                }