diff options
author | Chao Yu <chao@kernel.org> | 2024-11-08 09:25:54 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-11-21 16:12:29 +0000 |
commit | 3273d8ad947dea925a65a78ca29e5351c960c801 (patch) | |
tree | fea41d665296c1728c422485639e8e8bfbd32a7b /rust/helpers/helpers.c | |
parent | 789ca0eb47f7782b3230ab0957eabd7967b78cae (diff) | |
download | linux-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