From 563590e559b3010d06576a66b29c1644fe51d755 Mon Sep 17 00:00:00 2001 From: Gokul Sriram Palanisamy Date: Fri, 8 Jun 2018 17:42:07 +0530 Subject: [PATCH] dcache: Skipping dcache flush when no destination pointer In imxtract, if destination pointer is not given, skipping dcache flush at the destination pointer to avoid null-pointer issue. Change-Id: I4dc08bd35c4ffb083ab0c646961644560fbf4c1a Signed-off-by: Gokul Sriram Palanisamy --- common/cmd_ximg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index afaf854c81..a62c0d7a51 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -247,10 +247,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } puts("OK\n"); + flush_cache(dest, len); } - flush_cache(dest, len); - setenv_hex("fileaddr", data); setenv_hex("filesize", len);