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 <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-06-08 17:42:07 +05:30
parent 71e72eff91
commit 563590e559

View file

@ -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);