From: Tom Rini Date: Wed, 13 Jun 2018 11:42:36 -0400 Subject: [U-Boot] fs: fat: fix wrong casting to unsigned value of sect_to_cluster() In-Reply-To: <20180604114556epcas1p373ba4abe43a2441abc99c8c17a757aec~08nSs2JOq1074810748epcas1p32@epcas1p3.samsung.com> References: <20180604114556epcas1p373ba4abe43a2441abc99c8c17a757aec~08nSs2JOq1074810748epcas1p32@epcas1p3.samsung.com> Message-ID: <20180613154236.GA350@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Seung-Woo Kim > Reviewed-by: Lukasz Majewski 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: