aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sunrpc/svcauth.h7
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 {
25 char *cr_principal; /* for gss */ 25 char *cr_principal; /* for gss */
26}; 26};
27 27
28static inline void init_svc_cred(struct svc_cred *cred)
29{
30 cred->cr_group_info = NULL;
31 cred->cr_principal = NULL;
32 cred->cr_gss_mech = NULL;
33}
34
28static inline void free_svc_cred(struct svc_cred *cred) 35static inline void free_svc_cred(struct svc_cred *cred)
29{ 36{
30 if (cred->cr_group_info) 37 if (cred->cr_group_info)