svn commit: r230925 - projects/nfsv4.1-client/sys/fs/nfsclient

Rick Macklem rmacklem at FreeBSD.org
Fri Feb 3 01:59:17 UTC 2012


Author: rmacklem
Date: Fri Feb  3 01:59:16 2012
New Revision: 230925
URL: http://svn.freebsd.org/changeset/base/230925

Log:
  Fix a couple of "if (error)" cases for the new NFSv4.1 code.

Modified:
  projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c

Modified: projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c	Fri Feb  3 01:36:02 2012	(r230924)
+++ projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c	Fri Feb  3 01:59:16 2012	(r230925)
@@ -4544,7 +4544,7 @@ nfsrpc_layoutget(struct nfsmount *nmp, u
 	nd->nd_flag |= ND_USEGSSNAME;
 	error = newnfs_request(nd, nmp, NULL, &nmp->nm_sockreq, NULL, p, cred,
 	    NFS_PROG, NFS_VER4, NULL, 1, NULL, NULL);
-	if (error)
+	if (error != 0)
 		return (error);
 	if (nd->nd_repstat == 0) {
 		NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + NFSX_STATEID);
@@ -4854,7 +4854,7 @@ nfsrpc_layoutcommit(vnode_t vp, off_t of
 	}
 	nd->nd_flag |= ND_USEGSSNAME;
 	error = nfscl_request(nd, vp, p, cred, stuff);
-	if (error)
+	if (error != 0)
 		return (error);
 	if (nd->nd_repstat == 0) {
 		NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED);
@@ -4917,7 +4917,7 @@ nfsrpc_layoutreturn(vnode_t vp, int recl
 	}
 	nd->nd_flag |= ND_USEGSSNAME;
 	error = nfscl_request(nd, vp, p, cred, stuff);
-	if (error)
+	if (error != 0)
 		return (error);
 	if (nd->nd_repstat == 0) {
 		NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED);


More information about the svn-src-projects mailing list