HomeFreeBSD

soo_stat: Ensure error is always initialized.

Description

soo_stat: Ensure error is always initialized.

In kernels without MAC, error is not set for sockets whose protocol
layer does not implement the pr_sense hook.

Reported by: Jenkins (powerpc kernel builds)
Fixes: 7c04ca1fad67 sockets: for stat(2) on a socket don't report hiwat as block size

Details

Provenance
jhbAuthored on Aug 26 2022, 6:17 PM
Parents
rG74704a26bc2c: efi: Create a define for memory descriptor version
Branches
Unknown
Tags
Unknown