diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2020-08-11 18:36:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-12 10:58:01 -0700 |
commit | a090a5a7d73f79a9ae2dcc6e60d89bfc6864a65a (patch) | |
tree | 28512bf55a2f7984d183e4738b974d1fc7414ba1 /fs/signalfd.c | |
parent | 4ecfed61de766f4655025a71d79c9a0f4793a3f4 (diff) | |
download | linux-starfive-a090a5a7d73f79a9ae2dcc6e60d89bfc6864a65a.tar.gz linux-starfive-a090a5a7d73f79a9ae2dcc6e60d89bfc6864a65a.tar.bz2 linux-starfive-a090a5a7d73f79a9ae2dcc6e60d89bfc6864a65a.zip |
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>
Diffstat (limited to 'fs/signalfd.c')
0 files changed, 0 insertions, 0 deletions