commit | 787b0c5d189370c224b357835e4ee0a912f844da | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | Thu Oct 23 17:46:24 2014 +0900 |
committer | Tom Rini <trini@ti.com> | Mon Oct 27 17:54:12 2014 -0400 |
tree | eaf8faf34ee1fa4a99eaa38dd53779662c5b827e | |
parent | 682195eee44f299b262c00c093a5f61be21bc6a6 [diff] |
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>
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 @@ if ((count % (64 << 10)) == 0) WATCHDOG_RESET(); } + unmap_sysmem(buf); + unmap_sysmem(src); + return 0; }