]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/vfs.c
knfsd: Fixed problem with NFS exporting directories which are mounted on.
[linux-2.6-omap-h63xx.git] / fs / nfsd / vfs.c
index a0c2b253818b89e8a7f8bb1dbfafd1c5988d436b..7867151ebb83b16c6c3bcd446acfead317ec282e 100644 (file)
@@ -115,7 +115,8 @@ nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
 
        exp2 = rqst_exp_get_by_name(rqstp, mnt, mounts);
        if (IS_ERR(exp2)) {
-               err = PTR_ERR(exp2);
+               if (PTR_ERR(exp2) != -ENOENT)
+                       err = PTR_ERR(exp2);
                dput(mounts);
                mntput(mnt);
                goto out;