aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsfh.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfsfh.c')
-rw-r--r--fs/nfsd/nfsfh.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index ecf9c361b3f5..89f9041a7782 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -160,15 +160,14 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
160 &rqstp->rq_chandle); 160 &rqstp->rq_chandle);
161 } 161 }
162 162
163 if (IS_ERR(exp) && (PTR_ERR(exp) == -EAGAIN 163 error = nfserr_stale;
164 || PTR_ERR(exp) == -ETIMEDOUT)) { 164 if (PTR_ERR(exp) == -ENOENT)
165 error = nfserrno(PTR_ERR(exp));
166 goto out; 165 goto out;
167 }
168 166
169 error = nfserr_stale; 167 if (IS_ERR(exp)) {
170 if (!exp || IS_ERR(exp)) 168 error = nfserrno(PTR_ERR(exp));
171 goto out; 169 goto out;
170 }
172 171
173 /* Check if the request originated from a secure port. */ 172 /* Check if the request originated from a secure port. */
174 error = nfserr_perm; 173 error = nfserr_perm;