summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r--sys/kern/sys_process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 47fbbc1..8976941 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -251,8 +251,7 @@ proc_rwmem(struct proc *p, struct uio *uio)
* curthread but we can't assert that.) This keeps the process
* from exiting out from under us until this operation completes.
*/
- KASSERT(p->p_lock >= 1, ("%s: process %p (pid %d) not held", __func__,
- p, p->p_pid));
+ PROC_ASSERT_HELD(p);
/*
* The map we want...
OpenPOWER on IntegriCloud