diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-10-23 17:46:24 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-27 17:54:12 -0400 |
commit | a3a4749df2488487678328a03f4936c2f25363ab (patch) | |
tree | eaf8faf34ee1fa4a99eaa38dd53779662c5b827e | |
parent | 616e2162a5726a6a2617f43bf14e6f75fe928b18 (diff) | |
download | u-boot-imx-a3a4749df2488487678328a03f4936c2f25363ab.zip u-boot-imx-a3a4749df2488487678328a03f4936c2f25363ab.tar.gz u-boot-imx-a3a4749df2488487678328a03f4936c2f25363ab.tar.bz2 |
cmd_mem: call unmap_sysmem() after map_sysmem()
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>
-rw-r--r-- | common/cmd_mem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index bfca59e..0d50dcf 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -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; } |