diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-11-28 12:44:05 +0900 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-02 14:35:43 +0200 |
commit | 8d207bb3cdcf2a831e4cc67e913d7ccc3747a018 (patch) | |
tree | 2232063d0061956ca52d20d1bf82ab9acd11239f /fs/f2fs/f2fs.h | |
parent | 706bd223a167941b5f4f226c7cba23a329545775 (diff) | |
download | kernel_samsung_tuna-8d207bb3cdcf2a831e4cc67e913d7ccc3747a018.zip kernel_samsung_tuna-8d207bb3cdcf2a831e4cc67e913d7ccc3747a018.tar.gz kernel_samsung_tuna-8d207bb3cdcf2a831e4cc67e913d7ccc3747a018.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