Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76407f76 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4; fix session reference count leak



Note the session has to be put() here regardless of what happens to the
client.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 68a4b48c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -714,7 +714,6 @@ release_session_client(struct nfsd4_session *session)
	} else
		renew_client_locked(clp);
	spin_unlock(&client_lock);
	nfsd4_put_session(session);
}

/* must be called under the client_lock */
+1 −0
Original line number Diff line number Diff line
@@ -3325,6 +3325,7 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo
		}
		/* Renew the clientid on success and on replay */
		release_session_client(cs->session);
		nfsd4_put_session(cs->session);
	}
	return 1;
}