commit | 8d75da8afd068fa58b35e69c7c8c46770d9e7a98 | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@citi.umich.edu> | Wed Mar 03 16:13:29 2010 -0500 |
committer | J. Bruce Fields <bfields@citi.umich.edu> | Wed Mar 03 16:13:29 2010 -0500 |
tree | 9bec3e2fb1334df46403073e260795d8fd9bf156 | |
parent | ccdb357ccb77cc4cbe4f7abee9efd19957f0753a [diff] [blame] |
nfsd4: fix minor memory leak There's no need to allocate this cred more than once. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 8fa412c..4bc22c7 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c
@@ -525,6 +525,8 @@ int set_callback_cred(void) { + if (callback_cred) + return 0; callback_cred = rpc_lookup_machine_cred(); if (!callback_cred) return -ENOMEM;