aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4xdr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index dfca5121de53..170ea7e1ae25 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -2012,7 +2012,7 @@ nfsd4_encode_security_label(struct svc_rqst *rqstp, void *context, int len, __be
2012} 2012}
2013#else 2013#else
2014static inline __be32 2014static inline __be32
2015nfsd4_encode_security_label(struct svc_rqst *rqstp, struct dentry *dentry, __be32 **pp, int *buflen) 2015nfsd4_encode_security_label(struct svc_rqst *rqstp, void *context, int len, __be32 **pp, int *buflen)
2016{ return 0; } 2016{ return 0; }
2017#endif 2017#endif
2018 2018
@@ -2501,8 +2501,10 @@ out_acl:
2501 status = nfs_ok; 2501 status = nfs_ok;
2502 2502
2503out: 2503out:
2504#ifdef CONFIG_NFSD_V4_SECURITY_LABEL
2504 if (context) 2505 if (context)
2505 security_release_secctx(context, contextlen); 2506 security_release_secctx(context, contextlen);
2507#endif /* CONFIG_NFSD_V4_SECURITY_LABEL */
2506 kfree(acl); 2508 kfree(acl);
2507 if (fhp == &tempfh) 2509 if (fhp == &tempfh)
2508 fh_put(&tempfh); 2510 fh_put(&tempfh);