[U-Boot] fs: fat: fix wrong casting to unsigned value of sect_to_cluster()

Tom Rini trini at konsulko.com
Wed Jun 13 15:42:36 UTC 2018


On Mon, Jun 04, 2018 at 08:45:54PM +0900, Seung-Woo Kim wrote:

> 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 <jh80.chung at samsung.com>
> Signed-off-by: Seung-Woo Kim <sw0312.kim at samsung.com>
> Reviewed-by: Lukasz Majewski <lukma at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180613/bebff14d/attachment.sig>


More information about the U-Boot mailing list