exfat: separate the boot sector analysis
authorTetsuhiro Kohada <kohada.t2@gmail.com>
Fri, 29 May 2020 10:14:57 +0000 (19:14 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:49:14 +0000 (16:49 +0900)
commit33404a159828a97fefada0d8f4cf910873b8e9f1
tree33a6406a6e92aba3e613d7e187c56e7e3be53458
parent181a9e8009a8a8bdb19c2e24eeeae7d8e77c8c47
exfat: separate the boot sector analysis

Separate the boot sector analysis to read_boot_sector().
And add a check for the fs_name field.
Furthermore, add a strict consistency check, because overlapping areas
can cause serious corruption.

Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/exfat_raw.h
fs/exfat/super.c