HomeFreeBSD

Add a missing nfsrv_freesession() call for an unlikely failure case.

Description

Add a missing nfsrv_freesession() call for an unlikely failure case.

Since NFSv4.1 clients normally create a single session which supports
both fore and back channels, it is unlikely that a callback will fail
due to a lack of a back channel.
However, if this failure occurred, the session wasn't being dereferenced
and would never be free'd.
Found by inspection during pNFS server development.

Tested by: andreas.nagy@frequentis.com
MFC after: 2 months

Details

Provenance
rmacklemAuthored on
Parents
rS333765: powerpc: fix LINT build
Branches
Unknown
Tags
Unknown