HomeFreeBSD

Fix a crash in the NFSv4 server.

Description

Fix a crash in the NFSv4 server.

The PR reported a crash that occurred when a file was removed while
client(s) were actively doing lock operations on it.
Since nfsvno_getvp() will return NULL when the file does not exist,
the bug was obvious and easy to fix via this patch. It is a little
surprising that this wasn't found sooner, but I guess the above
case rarely occurs.

Tested by: iron.udjin@gmail.com
PR: 242768
Reported by: iron.udjin@gmail.com
MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Jan 26 2020, 5:59 PM
Parents
rG425e5f9dcf2b: Revert accidental change from r357146.
Branches
Unknown
Tags
Unknown

Event Timeline