git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfsd4: lookup up callback cred only once
[safe/jmp/linux-2.6]
/
fs
/
nfsd
/
nfs4state.c
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index
7e1fcc3
..
b205c7d
100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-643,6
+643,10
@@
shutdown_callback_client(struct nfs4_client *clp)
clp->cl_callback.cb_client = NULL;
rpc_shutdown_client(clnt);
}
+ if (clp->cl_callback.cb_cred) {
+ put_rpccred(clp->cl_callback.cb_cred);
+ clp->cl_callback.cb_cred = NULL;
+ }
}
static inline void