]> git.sur5r.net Git - u-boot/blobdiff - cmd/itest.c
efi_loader: Use system fdt as fallback
[u-boot] / cmd / itest.c
index 91ae5c2704c882be8d4457d67d5f8488b19d2f1c..fb4d797e43d78b56b4a466a7d086bfcdb20cdf14 100644 (file)
@@ -59,7 +59,7 @@ static long evalexp(char *s, int w)
        if (s[0] == '*') {
                addr = simple_strtoul(&s[1], NULL, 16);
                buf = map_physmem(addr, w, MAP_WRBACK);
-               if (!buf) {
+               if (!buf && addr) {
                        puts("Failed to map physical memory\n");
                        return 0;
                }