diff options
author | J. Bruce Fields <bfields@fieldses.org> | 2013-02-01 15:13:04 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-26 02:46:09 -0500 |
commit | 4f4a4faddea0fe45bf508e723c3a810c5190ed62 (patch) | |
tree | 8c34a07ce0258fcc187f0884f2fc58c7361686bb /fs/nfsd/xdr.h | |
parent | 3dadecce20603aa380023c65e6f55f108fd5e952 (diff) |
nfsd: handle vfs_getattr errors in acl protocol
We're currently ignoring errors from vfs_getattr.
The correct thing to do is to do the stat in the main service procedure
not in the response encoding.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/xdr.h')
-rw-r--r-- | fs/nfsd/xdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/xdr.h b/fs/nfsd/xdr.h index 53b1863dd8f6..4f0481d63804 100644 --- a/fs/nfsd/xdr.h +++ b/fs/nfsd/xdr.h | |||
@@ -167,7 +167,7 @@ int nfssvc_encode_entry(void *, const char *name, | |||
167 | int nfssvc_release_fhandle(struct svc_rqst *, __be32 *, struct nfsd_fhandle *); | 167 | int nfssvc_release_fhandle(struct svc_rqst *, __be32 *, struct nfsd_fhandle *); |
168 | 168 | ||
169 | /* Helper functions for NFSv2 ACL code */ | 169 | /* Helper functions for NFSv2 ACL code */ |
170 | __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp); | 170 | __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat); |
171 | __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp); | 171 | __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp); |
172 | 172 | ||
173 | #endif /* LINUX_NFSD_H */ | 173 | #endif /* LINUX_NFSD_H */ |