From a3a4749df2488487678328a03f4936c2f25363ab Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 23 Oct 2014 17:46:24 +0900 Subject: [PATCH] cmd_mem: call unmap_sysmem() after map_sysmem() Actually, unmap_sysmem() does nothing. Just in case. Signed-off-by: Masahiro Yamada Cc: Simon Glass Acked-by: Simon Glass --- common/cmd_mem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index bfca59e351..0d50dcfe9c 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; } -- 2.39.5