[pnfs] [PATCH 4/4] nfsd4_exchange_id cmp_cred bug fix
andros at umich.edu
andros at umich.edu
Thu May 31 10:54:17 EDT 2007
From: Andy Adamson <andros at umich.edu>
Don't reference the confirmed nfs4_client in the unconfirmed case.
Signed-off by: Andy Adamson <andros at citi.umich.edu>
---
fs/nfsd/nfs4state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 9815ff3..4fb6bd8 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1117,7 +1117,7 @@ int nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_exchange_id *clid)
if (unconf) {
status = nfs_ok;
/* Found an unconfirmed record */
- if (!cmp_creds(&conf->cl_cred, &rqstp->rq_cred)) {
+ if (!cmp_creds(&unconf->cl_cred, &rqstp->rq_cred)) {
/* Principal changed: update to the new principal and send
* nfs_ok */
copy_cred(&unconf->cl_cred, &rqstp->rq_cred);
--
1.5.0.2
More information about the pNFS
mailing list