projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccdb357
)
nfsd4: fix minor memory leak
author
J. Bruce Fields
<bfields@citi.umich.edu>
Wed, 3 Mar 2010 21:13:29 +0000
(16:13 -0500)
committer
J. Bruce Fields
<bfields@citi.umich.edu>
Wed, 3 Mar 2010 21:13:29 +0000
(16:13 -0500)
There's no need to allocate this cred more than once.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4callback.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4callback.c
b/fs/nfsd/nfs4callback.c
index 8fa412ce802151382a34679c4c7f7cc628067541..4bc22c763de7b433b4a37f2affdf75cc560d3908 100644
(file)
--- a/
fs/nfsd/nfs4callback.c
+++ b/
fs/nfsd/nfs4callback.c
@@
-525,6
+525,8
@@
static struct rpc_cred *callback_cred;
int set_callback_cred(void)
{
+ if (callback_cred)
+ return 0;
callback_cred = rpc_lookup_machine_cred();
if (!callback_cred)
return -ENOMEM;