aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-11-08 09:25:54 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-11-21 16:12:29 +0000
commit3273d8ad947dea925a65a78ca29e5351c960c801 (patch)
treefea41d665296c1728c422485639e8e8bfbd32a7b /rust/helpers/helpers.c
parent789ca0eb47f7782b3230ab0957eabd7967b78cae (diff)
downloadlinux-3273d8ad947dea925a65a78ca29e5351c960c801.tar.gz
linux-3273d8ad947dea925a65a78ca29e5351c960c801.tar.bz2
linux-3273d8ad947dea925a65a78ca29e5351c960c801.zip
f2fs: fix to do cast in F2FS_{BLK_TO_BYTES, BTYES_TO_BLK} to avoid overflow
It missed to cast variable to unsigned long long type before bit shift, which will cause overflow, fix it. Fixes: f7ef9b83b583 ("f2fs: introduce macros to convert bytes and blocks in f2fs") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions