Просмотр исходного кода

bootm: fix 'memory-fixup' for vxWorks boot

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>
Hannes Schmelzer 6 лет назад
Родитель
Сommit
7f1cb1d588
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      arch/arm/lib/bootm.c

+ 1 - 1
arch/arm/lib/bootm.c

@@ -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");
 		}