summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2010-06-22 20:10:14 +0200
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-06-22 23:19:28 +0200
commit76407f76e0f71428f3c31faff004bff87fea51ba (patch)
treee8bbc8e7e542980633a05b49a13242bdb9e7651c /fs/nfsd/nfs4xdr.c
parentnfsd4: don't bother storing callback reply tag (diff)
downloadlinux-76407f76e0f71428f3c31faff004bff87fea51ba.tar.xz
linux-76407f76e0f71428f3c31faff004bff87fea51ba.zip
nfsd4; fix session reference count leak
Note the session has to be put() here regardless of what happens to the client. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index ac17a7080239..835924f5ca54 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -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;
}