aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-11-28 12:44:05 +0900
committerAndreas Blaesius <skate4life@gmx.de>2016-06-05 21:20:57 +0200
commitef85bdf069edf515b0c13275e9c53dcbc1c4efc5 (patch)
treef1b4ea087f2ffe8e7fbeb8542529cb4d2963b127 /fs/f2fs/f2fs.h
parentb39328e3e7d6db8a42f7022aefa8495cba2b470f (diff)
downloadkernel_samsung_espresso10-ef85bdf069edf515b0c13275e9c53dcbc1c4efc5.zip
kernel_samsung_espresso10-ef85bdf069edf515b0c13275e9c53dcbc1c4efc5.tar.gz
kernel_samsung_espresso10-ef85bdf069edf515b0c13275e9c53dcbc1c4efc5.tar.bz2
f2fs: bug fix on bit overflow from 32bits to 64bits
This patch fixes some bit overflows by the shift operations. Dan Carpenter reported potential bugs on bit overflows as follows. fs/f2fs/segment.c:910 submit_write_page() warn: should 'blk_addr << ((sbi)->log_blocksize - 9)' be a 64 bit type? fs/f2fs/checkpoint.c:429 get_valid_checkpoint() warn: should '1 << ()' be a 64 bit type? fs/f2fs/data.c:408 f2fs_readpage() warn: should 'blk_addr << ((sbi)->log_blocksize - 9)' be a 64 bit type? fs/f2fs/data.c:457 submit_read_page() warn: should 'blk_addr << ((sbi)->log_blocksize - 9)' be a 64 bit type? fs/f2fs/data.c:525 get_data_block_ro() warn: should 'i << blkbits' be a 64 bit type? Bug-Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
0 files changed, 0 insertions, 0 deletions