fsck_msdosfs: do not call checksize() if the cluster is bad

PR:	276464
MFC after:	1 week
This commit is contained in:
John F. Carr 2024-01-21 01:18:18 +02:00 committed by Konstantin Belousov
parent edec803c5b
commit deeb1d3402

View File

@ -995,7 +995,7 @@ readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir)
n->next = pendingDirectories;
n->dir = d;
pendingDirectories = n;
} else {
} else if (!(mod & FSERROR)) {
mod |= k = checksize(fat, p, &dirent);
if (k & FSDIRMOD)
mod |= THISMOD;