HomeFreeBSD

nfsserver: Fix vrele() panic in nfsvno_open()

Description

nfsserver: Fix vrele() panic in nfsvno_open()

Commit 65127e982b94 removed a check for ni_startdir != NULL.
This allowed the vrele(ndp->ni_dvp) to be called with
a NULL argument.

This patch adds a new boolean argument to nfsvno_open()
that can be checked instead of ni_startdir, since mjg@ requested
that ni_startdir not be used. (Discussed in PR#268828.)

PR: 268828
Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D38032

Details

Provenance
rmacklemAuthored on Jan 13 2023, 12:45 AM
Reviewer
mjg
Differential Revision
D38032: Fix a panic that occurs when vrele() is called with a NULL ni_dvp
Parents
rG4b56afaf7bf4: LinuxKPI: implement irq_get_msi_desc()
Branches
Unknown
Tags
Unknown