]> Git Repo - J-u-boot.git/commit - include/fat.h
fs: fat: fix wrong casting to unsigned value of sect_to_cluster()
authorSeung-Woo Kim <[email protected]>
Mon, 4 Jun 2018 11:45:54 +0000 (20:45 +0900)
committerTom Rini <[email protected]>
Wed, 13 Jun 2018 11:49:11 +0000 (07:49 -0400)
commit6e2151c729674aecabf5ec5a96dac97433632009
tree01303bce839ef3000f591bbd301ad4f7c41cbba0
parent920be88e92001fee13d876a6c4aa245cc658800f
fs: fat: fix wrong casting to unsigned value of sect_to_cluster()

After the commit 265edc03d5a1 ("fs/fat: Clean up open-coded sector
<-> cluster conversions"), it is hung up writing new file to FAT16
disk with more than 19 files in armv7. It is because result value
of sect_to_cluster() is not proper by casting from signed value to
unsigned value. Fix the wrong casting of sect_to_cluster().

Reported-by: Jaehoon Chung <[email protected]>
Signed-off-by: Seung-Woo Kim <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
include/fat.h
This page took 0.034482 seconds and 4 git commands to generate.