kernel_optimize_test/fs/fat
OGAWA Hirofumi a090a5a7d7 fat: fix fat_ra_init() for data clusters == 0
If data clusters == 0, fat_ra_init() calls the ->ent_blocknr() for the
cluster beyond ->max_clusters.

This checks the limit before initialization to suppress the warning.

Reported-by: syzbot+756199124937b31a9b7e@syzkaller.appspotmail.com
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/87mu462sv4.fsf@mail.parknet.co.jp
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:58:01 -07:00
..
cache.c
dir.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
fat.h
fatent.c fat: fix fat_ra_init() for data clusters == 0 2020-08-12 10:58:01 -07:00
file.c fatfs: switch write_lock to read_lock in fat_ioctl_get_attributes 2020-08-12 10:58:01 -07:00
inode.c fat: don't allow to mount if the FAT length == 0 2020-06-04 19:06:25 -07:00
Kconfig VFAT/FAT/MSDOS FILESYSTEM: replace HTTP links with HTTPS ones 2020-08-12 10:58:01 -07:00
Makefile
misc.c fs: fat: Eliminate timespec64_trunc() usage 2019-12-08 19:10:51 -05:00
namei_msdos.c
namei_vfat.c
nfs.c