android_kernel_xiaomi_sm8350/fs/omfs
Bob Copeland 5a6b2b36a8 omfs: fix potential integer overflow in allocator
Both 'i' and 'bits_per_entry' are signed integers but the result is a
u64 block number.  Cast i to u64 to avoid truncation on 32-bit targets.

Found by Coverity (CID 200679).

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-05-28 18:25:19 -07:00
..
bitmap.c omfs: fix potential integer overflow in allocator 2015-05-28 18:25:19 -07:00
dir.c
file.c
inode.c omfs: fix sign confusion for bitmap loop counter 2015-05-28 18:25:19 -07:00
Kconfig
Makefile
omfs_fs.h
omfs.h