diff options
author | jhb <jhb@FreeBSD.org> | 2002-10-16 16:28:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-10-16 16:28:33 +0000 |
commit | a915592b8d57aa870945682cdbb4c8e6ac586f7c (patch) | |
tree | 68cee2157f61e44a9aa5f80aa671652f91d17c89 /sys/kern | |
parent | 1cdf06340a147c06ea537cd4e21818b53fbb1d65 (diff) | |
download | FreeBSD-src-a915592b8d57aa870945682cdbb4c8e6ac586f7c.zip FreeBSD-src-a915592b8d57aa870945682cdbb4c8e6ac586f7c.tar.gz |
Add a missing PROC_UNLOCK in ptrace() for the PT_IO case.
PR: kern/44065
Submitted by: Mark Kettenis <kettenis@chello.nl>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_process.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 521ba6a..c3c5414 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -647,6 +647,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) return (error); case PT_IO: + PROC_UNLOCK(p); piod = addr; iov.iov_base = piod->piod_addr; iov.iov_len = piod->piod_len; |