projects
/
profile
/
mobile
/
platform
/
kernel
/
u-boot-tm1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tizen: thordown: fix to check partition size more than 4GB
[profile/mobile/platform/kernel/u-boot-tm1.git]
/
property
/
thor_mode.c
diff --git
a/property/thor_mode.c
b/property/thor_mode.c
index
e277eba
..
6e3a104
100644
(file)
--- a/
property/thor_mode.c
+++ b/
property/thor_mode.c
@@
-178,7
+178,8
@@
static long long int process_rqt_download(const struct rqt_box *rqt)
ret = rsp->ack;
}
- if (thor_file_size > part_info.size * part_info.blksz) {
+ if ((uint64_t)thor_file_size >
+ (uint64_t)part_info.size * (uint64_t)part_info.blksz) {
thor_debug("Too large binary\n");
rsp->ack = -EFBIG;
ret = rsp->ack;