diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-01-25 05:52:39 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-23 07:24:51 +0300 |
commit | dba79f38bc60d98b605bdbbf5613aa3fb8f8ff7c (patch) | |
tree | dfbba41ac9cfc88c2e20e32b41a857dba6357c07 /Kconfig | |
parent | ba38c27eb93e2d36bf940ca65c145f6e2aaa6d5c (diff) | |
download | linux-dba79f38bc60d98b605bdbbf5613aa3fb8f8ff7c.tar.xz |
f2fs: fix to avoid overflow when left shifting page offset
We use following method to calculate size with current page index:
size = index << PAGE_SHIFT
If type of index has only 32-bits size, left shifting will incur overflow,
which makes result incorrect.
So let's cast index with 64-bits type to avoid such issue.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions