From: Masahiro Yamada Date: Thu, 23 Oct 2014 08:46:24 +0000 (+0900) Subject: cmd_mem: call unmap_sysmem() after map_sysmem() X-Git-Tag: v2015.01-rc1~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3a4749df2488487678328a03f4936c2f25363ab;p=u-boot 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 --- 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; }