]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_mem.c
fix copy from ram to dataflash
[people/ms/u-boot.git] / common / cmd_mem.c
index ed91f27046b52c5c6dd3f0208f708d3f02bd09aa..4262e26a61576c46f5f336044e5ce2fdaad307a9 100644 (file)
@@ -417,7 +417,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        /* check if we are copying to Flash */
        if ( (addr2info(dest) != NULL)
 #ifdef CONFIG_HAS_DATAFLASH
-          && (!addr_dataflash(addr))
+          && (!addr_dataflash(dest))
 #endif
           ) {
                int rc;