[U-Boot] fs/ext4: fix calling put_ext4 with truncated offset

Tom Rini trini at ti.com
Mon Jan 20 23:59:27 CET 2014


On Wed, Jan 08, 2014 at 08:15:33AM +0800, Ma Haijun wrote:

> Curently, we are using 32 bit multiplication to calculate the offset,
> so the result will always be 32 bit.
> This can silently cause file system corruption when performing a write
> operation on partition larger than 4 GiB.
> 
> This patch address the issue by simply promoting the terms to 64 bit,
> and let compilers decide how to do the multiplication efficiently.
> 
> Signed-off-by: Ma Haijun <mahaijuns at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140120/f10f1417/attachment.pgp>


More information about the U-Boot mailing list