HomeFreeBSD

mount: Fix an incorrect assertion in kernel_mount()

Description

mount: Fix an incorrect assertion in kernel_mount()

The pointer to the mount values may be null if an error occurred while
copying them in, so fix the assertion condition to reflect that
possibility.

While here, move some initialization code into the error == 0 block. No
functional change intended.

Reported by: syzkaller
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jun 14 2022, 3:36 PM
Parents
rG630f633f2a76: vm_object: Use the vm_object_(set|clear)_flag() helpers
Branches
Unknown
Tags
Unknown