mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
fsck_msdosfs: do not call checksize() if the cluster is bad
PR: 276464 (cherry picked from commit deeb1d34024b3f843d965cdf204c745165c9bac0)
This commit is contained in:
parent
efdf24fd9b
commit
63a7e799b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue