]> git.sur5r.net Git - u-boot/commitdiff
cmd_mem: call unmap_sysmem() after map_sysmem()
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 23 Oct 2014 08:46:24 +0000 (17:46 +0900)
committerTom Rini <trini@ti.com>
Mon, 27 Oct 2014 21:54:12 +0000 (17:54 -0400)
Actually, unmap_sysmem() does nothing.  Just in case.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
common/cmd_mem.c

index bfca59e351f0f6705b9949b911b1aa2bf2d93af2..0d50dcfe9c1b8083a35f3cc6df5796a12a0149a2 100644 (file)
@@ -480,6 +480,9 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                if ((count % (64 << 10)) == 0)
                        WATCHDOG_RESET();
        }
+       unmap_sysmem(buf);
+       unmap_sysmem(src);
+
        return 0;
 }