summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/nfs/server/src/nfs3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index 630760953..812bb8372 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -108,7 +108,7 @@
#define nfs3_check_fh_resolve_status(cst, nfstat, erlabl) \
do { \
- if ((cst)->resolve_ret == -1) { \
+ if ((cst)->resolve_ret < 0) { \
nfstat = nfs3_errno_to_nfsstat3 (cst->resolve_errno);\
goto erlabl; \
} \
@@ -116,7 +116,7 @@
#define nfs3_check_new_fh_resolve_status(cst, nfstat, erlabl) \
do { \
- if (((cst)->resolve_ret == -1) && \
+ if (((cst)->resolve_ret < 0) && \
((cst)->resolve_errno != ENOENT)) { \
nfstat = nfs3_errno_to_nfsstat3 (cs->resolve_errno);\
goto erlabl; \