aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/export.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index ac5149d25372..597b3cbf8b0b 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1058,14 +1058,11 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp,
1058 if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN) 1058 if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN)
1059 return nfserr_dropit; 1059 return nfserr_dropit;
1060 if (exp == NULL) 1060 if (exp == NULL)
1061 rv = nfserr_perm; 1061 return nfserr_perm;
1062 else if (IS_ERR(exp)) 1062 else if (IS_ERR(exp))
1063 rv = nfserrno(PTR_ERR(exp)); 1063 return nfserrno(PTR_ERR(exp));
1064 else { 1064 rv = fh_compose(fhp, exp, exp->ex_dentry, NULL);
1065 rv = fh_compose(fhp, exp, 1065 exp_put(exp);
1066 exp->ex_dentry, NULL);
1067 exp_put(exp);
1068 }
1069 return rv; 1066 return rv;
1070} 1067}
1071 1068