]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r333766
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Jul 2018 21:07:39 +0000 (21:07 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Jul 2018 21:07:39 +0000 (21:07 +0000)
commitb5a3b9dda6199d6709062fc09f0115503c0c9049
tree8abf80b685d460bc57f58161a143e3d3e5fc64ae
parent1bdc5de5e855c979fef39d3b1062a40711adb98a
MFC: r333766
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@336518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdstate.c