aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 245eaa1fb59b..b653ede37e66 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1553,7 +1553,7 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
1553 tdir = tdentry->d_inode; 1553 tdir = tdentry->d_inode;
1554 1554
1555 err = (rqstp->rq_vers == 2) ? nfserr_acces : nfserr_xdev; 1555 err = (rqstp->rq_vers == 2) ? nfserr_acces : nfserr_xdev;
1556 if (fdir->i_sb != tdir->i_sb) 1556 if (ffhp->fh_export != tfhp->fh_export)
1557 goto out; 1557 goto out;
1558 1558
1559 err = nfserr_perm; 1559 err = nfserr_perm;