[U-Boot] [PATCH] cmd_mem: call unmap_sysmem() after map_sysmem()

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Oct 23 10:46:24 CEST 2014


Actually, unmap_sysmem() does nothing.  Just in case.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Cc: Simon Glass <sjg at chromium.org>
---

 common/cmd_mem.c | 3 +++
 1 file changed, 3 insertions(+)

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;
 }
 
-- 
1.9.1



More information about the U-Boot mailing list