commit | 0550870b1c590be6beb09b57762ec43b5516f7d1 | [log] [tgz] |
---|---|---|
author | Ma Haijun <mahaijuns@gmail.com> | Wed Jan 08 08:15:33 2014 +0800 |
committer | Tom Rini <trini@ti.com> | Mon Jan 20 10:09:38 2014 -0500 |
tree | 60b432add71bb6c1603fce7f486267c34e099074 | |
parent | f17828830df0d83c680f1703e491ac12703a3d19 [diff] |
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>