mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
fs/msdosfs fatblock: use ulmin() rather than min()
PR: 277237 (cherry picked from commit 0085afdceb17cb7d4e41f9073299f688372c6a0f)
This commit is contained in:
parent
dda1c30ffe
commit
b2c9d403d5
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ fatblock(struct msdosfsmount *pmp, u_long ofs, u_long *bnp, u_long *sizep,
|
|||
fatblocksec /= 2;
|
||||
}
|
||||
bn = ofs / pmp->pm_fatblocksize * pmp->pm_fatblocksec;
|
||||
size = roundup(min(fatblocksec, pmp->pm_FATsecs - bn) * DEV_BSIZE,
|
||||
size = roundup(ulmin(fatblocksec, pmp->pm_FATsecs - bn) * DEV_BSIZE,
|
||||
pmp->pm_BlkPerSec * DEV_BSIZE);
|
||||
bn += pmp->pm_fatblk + pmp->pm_curfat * pmp->pm_FATsecs;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue