tizen: thordown: fix to check partition size more than 4GB
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / thor_mode.c
index e277eba..6e3a104 100644 (file)
@@ -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;