HomeFreeBSD

nfscommon: Use IS_DEFAULT_VNET() in the vnet initialization

Description

nfscommon: Use IS_DEFAULT_VNET() in the vnet initialization

Another oopsie. The vnet initialization function in
nfs_commonport.c for initializing prison0 by testing
curthread->td_ucred->cr_prison == &prison0. This is bogus
and always true. Replace it with IS_DEFAULT_VNET(curvnet).

MFC after: 3 months

Details

Provenance
rmacklemAuthored on Feb 21 2023, 3:43 AM
Parents
rG357492c99597: nfscl: Add NFSD_CURVNET macros to nfsclient syscall
Branches
Unknown
Tags
Unknown