mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
fs: fat: Fix check_overflow function
Change-Id: I5020992c202623543c4b3f49dd187a47c2ea5fee Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
parent
5cc17efe90
commit
061fe73963
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ static int check_overflow(fsdata *mydata, __u32 clustnum, loff_t size)
|
|||
if (offset != 0)
|
||||
sect_num++;
|
||||
|
||||
if (startsect + sect_num > cur_part_info.start + total_sector)
|
||||
if (startsect + sect_num > total_sector)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue