HomeFreeBSD

ffs: Correct the input size check in sysctl_ffs_fsck()

Description

ffs: Correct the input size check in sysctl_ffs_fsck()

Make sure we return an error if no input was specified, since
SYSCTL_IN() will report success in that case.

Reported by: KMSAN
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation

(cherry picked from commit b2f9575646f89cdddcad76acae3e9305535506a2)

Details

Provenance
markjAuthored on May 31 2021, 10:56 PM
Parents
rG2a87d7c0139c: amd64: Relax the assertion added in commit 4a59cbc12
Branches
Unknown
Tags
Unknown