aboutsummaryrefslogtreecommitdiff
path: root/include/linux/clockchips.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-01-25 10:52:39 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:48 +0200
commitefb2bc27dbaa0fce80d1a4d8079b211c20237dc7 (patch)
tree4c6d4dcdd66aba4f99d8225ccbbee06c19d21bc4 /include/linux/clockchips.h
parent6e28b1460d876699fdd50acfe5426804b864731a (diff)
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 'include/linux/clockchips.h')
0 files changed, 0 insertions, 0 deletions