diff options
author | Ma Haijun <mahaijuns@gmail.com> | 2014-01-08 08:15:33 +0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-01-20 10:09:38 -0500 |
commit | 0550870b1c590be6beb09b57762ec43b5516f7d1 (patch) | |
tree | 60b432add71bb6c1603fce7f486267c34e099074 /board/davedenx | |
parent | f17828830df0d83c680f1703e491ac12703a3d19 (diff) | |
download | u-boot-imx-0550870b1c590be6beb09b57762ec43b5516f7d1.zip u-boot-imx-0550870b1c590be6beb09b57762ec43b5516f7d1.tar.gz u-boot-imx-0550870b1c590be6beb09b57762ec43b5516f7d1.tar.bz2 |
fs/ext4: fix calling put_ext4 with truncated offset
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@gmail.com>
Diffstat (limited to 'board/davedenx')
0 files changed, 0 insertions, 0 deletions