summaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-23 17:46:24 +0900
committerTom Rini <trini@ti.com>2014-10-27 17:54:12 -0400
commita3a4749df2488487678328a03f4936c2f25363ab (patch)
treeeaf8faf34ee1fa4a99eaa38dd53779662c5b827e /common/cmd_mem.c
parent616e2162a5726a6a2617f43bf14e6f75fe928b18 (diff)
downloadu-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>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c3
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;
}