diff options
author | Ma Haijun <mahaijuns@gmail.com> | 2014-01-08 00:15:33 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-01-20 15:09:38 (GMT) |
commit | 0550870b1c590be6beb09b57762ec43b5516f7d1 (patch) | |
tree | 60b432add71bb6c1603fce7f486267c34e099074 /board | |
parent | f17828830df0d83c680f1703e491ac12703a3d19 (diff) | |
download | u-boot-0550870b1c590be6beb09b57762ec43b5516f7d1.tar.xz |
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')
0 files changed, 0 insertions, 0 deletions