]> git.sur5r.net Git - u-boot/blobdiff - cmd/sf.c
warp7: secure_defconfig: Remove secure_defconfig
[u-boot] / cmd / sf.c
index f971eec781cc88978f181a9a24ec9d37dff6b11d..e7ff9a6462087239ca7a570c1a97f278d737468a 100644 (file)
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -287,7 +287,7 @@ static int do_spi_flash_read_write(int argc, char * const argv[])
        }
 
        buf = map_physmem(addr, len, MAP_WRBACK);
-       if (!buf) {
+       if (!buf && addr) {
                puts("Failed to map physical memory\n");
                return 1;
        }