Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 04:31:40 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259211 - in head/sys/cddl/contrib/opensolaris/uts: intel/dtrace powerpc/dtrace
Message-ID:  <201312110431.rBB4Ve2b084905@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Dec 11 04:31:40 2013
New Revision: 259211
URL: http://svnweb.freebsd.org/changeset/base/259211

Log:
  Correct the check for errors from proc_rwmem().
  
  MFC after:	2 weeks

Modified:
  head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
  head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c

Modified: head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c	Wed Dec 11 04:09:17 2013	(r259210)
+++ head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c	Wed Dec 11 04:31:40 2013	(r259211)
@@ -75,7 +75,7 @@ proc_ops(int op, proc_t *p, void *kaddr,
 	uio.uio_td = curthread;
 	uio.uio_rw = op;
 	PHOLD(p);
-	if (proc_rwmem(p, &uio) < 0) {
+	if (proc_rwmem(p, &uio) != 0) {
 		PRELE(p);
 		return (-1);
 	}

Modified: head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c	Wed Dec 11 04:09:17 2013	(r259210)
+++ head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c	Wed Dec 11 04:31:40 2013	(r259211)
@@ -60,7 +60,7 @@ proc_ops(int op, proc_t *p, void *kaddr,
 	uio.uio_td = curthread;
 	uio.uio_rw = op;
 	PHOLD(p);
-	if (proc_rwmem(p, &uio) < 0) {
+	if (proc_rwmem(p, &uio) != 0) {
 		PRELE(p);
 		return (-1);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312110431.rBB4Ve2b084905>