diff options
author | J. Bruce Fields | 2013-05-14 22:53:40 +0200 |
---|---|---|
committer | J. Bruce Fields | 2013-07-01 23:23:06 +0200 |
commit | 442340639194762df7e61e8aabae44a18896eca1 (patch) | |
tree | 95adc5287a1c3c43b50e0d12183d8bd5a596e43b /include | |
parent | Merge branch 'for-3.10' into 'for-3.11' (diff) | |
download | kernel-qcow2-linux-442340639194762df7e61e8aabae44a18896eca1.tar.gz kernel-qcow2-linux-442340639194762df7e61e8aabae44a18896eca1.tar.xz kernel-qcow2-linux-442340639194762df7e61e8aabae44a18896eca1.zip |
svcrpc: introduce init_svc_cred
Common helper to zero out fields of the svc_cred.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svcauth.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h index ff374ab30839..95c956613a9c 100644 --- a/include/linux/sunrpc/svcauth.h +++ b/include/linux/sunrpc/svcauth.h @@ -25,6 +25,13 @@ struct svc_cred { char *cr_principal; /* for gss */ }; +static inline void init_svc_cred(struct svc_cred *cred) +{ + cred->cr_group_info = NULL; + cred->cr_principal = NULL; + cred->cr_gss_mech = NULL; +} + static inline void free_svc_cred(struct svc_cred *cred) { if (cred->cr_group_info) |