diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-05-15 16:27:52 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-05-15 16:35:18 +0200 |
commit | ba4e55bb67894136489b27372166416cd70b0756 (patch) | |
tree | ef46a645fd8946b067f334e4c1747dd755d62236 /fs/nfsd | |
parent | sunrpc: server back channel needs no rpcbind method (diff) | |
download | linux-ba4e55bb67894136489b27372166416cd70b0756.tar.xz linux-ba4e55bb67894136489b27372166416cd70b0756.zip |
nfsd4: fix compile in !CONFIG_NFSD_V4_SECURITY_LABEL case
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 4 |
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 } #else static inline __be32 -nfsd4_encode_security_label(struct svc_rqst *rqstp, struct dentry *dentry, __be32 **pp, int *buflen) +nfsd4_encode_security_label(struct svc_rqst *rqstp, void *context, int len, __be32 **pp, int *buflen) { return 0; } #endif @@ -2501,8 +2501,10 @@ out_acl: status = nfs_ok; out: +#ifdef CONFIG_NFSD_V4_SECURITY_LABEL if (context) security_release_secctx(context, contextlen); +#endif /* CONFIG_NFSD_V4_SECURITY_LABEL */ kfree(acl); if (fhp == &tempfh) fh_put(&tempfh); |