Author: markj
Date: Sat Aug  9 15:03:56 2014
New Revision: 269757
URL: http://svnweb.freebsd.org/changeset/base/269757

Log:
  MFC r259211:
  Correct the check for errors from proc_rwmem().

Modified:
  stable/9/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
Directory Properties:
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c       
Sat Aug  9 15:03:47 2014        (r269756)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c       
Sat Aug  9 15:03:56 2014        (r269757)
@@ -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);
        }
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to