aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/powerpc
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2013-12-11 04:31:40 +0000
committerMark Johnston <markj@FreeBSD.org>2013-12-11 04:31:40 +0000
commite53c69c1f57ec41116604481b1f3af01bcb18c38 (patch)
treeaf78b44d814312eff39e1a89561d264b25f77cb7 /sys/cddl/contrib/opensolaris/uts/powerpc
parent13de33a5dc2304b13d595d75d48c51793958474f (diff)
downloadsrc-e53c69c1f57ec41116604481b1f3af01bcb18c38.tar.gz
src-e53c69c1f57ec41116604481b1f3af01bcb18c38.zip
Correct the check for errors from proc_rwmem().
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=259211
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/powerpc')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
index c035c99f55a9..f076f5d8040e 100644
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
@@ -60,7 +60,7 @@ proc_ops(int op, proc_t *p, void *kaddr, off_t uaddr, size_t len)
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);
}