aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/vfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 230b79fbf005..0f79e33a65d7 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -88,8 +88,9 @@ nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
88 .dentry = dget(dentry)}; 88 .dentry = dget(dentry)};
89 int err = 0; 89 int err = 0;
90 90
91 while (d_mountpoint(path.dentry) && follow_down(&path)) 91 err = follow_down(&path, false);
92 ; 92 if (err < 0)
93 goto out;
93 94
94 exp2 = rqst_exp_get_by_name(rqstp, &path); 95 exp2 = rqst_exp_get_by_name(rqstp, &path);
95 if (IS_ERR(exp2)) { 96 if (IS_ERR(exp2)) {