summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-19 18:06:18 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-19 18:06:18 +0000
commitd967856907c74ff154b89f43a061eeb26fe13b88 (patch)
treea0a687932adaee485a5ea4dc10bf012a24593b4d /sys
parent42e8cc84ba60520a683c945472f179bb4fea1515 (diff)
No need to PHOLD/PRELE here, really.
Diffstat (limited to 'sys')
-rw-r--r--sys/miscfs/procfs/procfs_mem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c
index ec7fe7595f3..b2a95032759 100644
--- a/sys/miscfs/procfs/procfs_mem.c
+++ b/sys/miscfs/procfs/procfs_mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_mem.c,v 1.13 2001/09/11 20:05:25 miod Exp $ */
+/* $OpenBSD: procfs_mem.c,v 1.14 2001/09/19 18:06:17 art Exp $ */
/* $NetBSD: procfs_mem.c,v 1.8 1996/02/09 22:40:50 christos Exp $ */
/*
@@ -83,10 +83,8 @@ procfs_domem(curp, p, pfs, uio)
/* XXXCDC: how should locking work here? */
if ((p->p_flag & P_WEXIT) || (p->p_vmspace->vm_refcnt < 1))
return(EFAULT);
- PHOLD(p);
p->p_vmspace->vm_refcnt++; /* XXX */
error = uvm_io(&p->p_vmspace->vm_map, uio);
- PRELE(p);
uvmspace_free(p->p_vmspace);
return error;