From 045efc1f5d59d98fff28ea29039ead4015fe1e6b Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 27 Jul 2010 06:16:51 +0000 Subject: nfs3: Error returns must check for <0, not == -1 Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 854 (nfs server didn't start) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=854 --- xlators/nfs/server/src/nfs3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 63076095386..812bb8372a2 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; \ -- cgit