]> git.baikalelectronics.ru Git - kernel.git/commit
fat: add simple validation for directory inode
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 20 Jan 2016 22:59:38 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commit7aeaafe878424bc078c476970b6ba93526174d42
tree5d4b38520c00134925329278b127ae75ff45e902
parent09bee941b5db96492ddf78d48d99f3260a4f3b6a
fat: add simple validation for directory inode

This detects simple corruption cases of directory, and tries to avoid
further damage to user data.

And performance impact of this validation should be very low, or not
measurable.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c