summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodewalker <codewalker@hardkernel.com>2017-08-16 12:08:41 +0300
committercodewalker <codewalker@hardkernel.com>2017-08-16 12:08:41 +0300
commitb902983afd2347e51283016c424201efd5cfc12b (patch)
tree3b285885f37464aff63f40fa183e9211a7c33752
parent03deb5becd8537240c44efab8ab148b38d5185ff (diff)
downloadu-boot-b902983afd2347e51283016c424201efd5cfc12b.tar.xz
ODROID-XU4: Fix wrong address loaded files.
Change-Id: I515429ff630f148a3cabc6b5fd163fc6c275d203
-rwxr-xr-xboard/samsung/common/odroid_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/odroid_misc.c b/board/samsung/common/odroid_misc.c
index 37ba0acbaf..2c7a10f1b8 100755
--- a/board/samsung/common/odroid_misc.c
+++ b/board/samsung/common/odroid_misc.c
@@ -374,8 +374,6 @@ static uint upload_file(const char *fname, const char *pname,
#endif
total_fsize += filesize;
}
- if (!is_split || !filesize)
- goto out;
mem_addr += filesize;
/* load memory overflow */
@@ -385,6 +383,8 @@ static uint upload_file(const char *fname, const char *pname,
upinfo->file_size = 0;
return upinfo->mem_addr;
}
+ if (!is_split || !filesize)
+ goto out;
}
out:
if (total_fsize) {