Add a missing PROC_UNLOCK in ptrace() for the PT_IO case.

PR:		kern/44065
Submitted by:	Mark Kettenis <kettenis@chello.nl>
This commit is contained in:
John Baldwin 2002-10-16 16:28:33 +00:00
parent 3a3ae877a4
commit 5c0cc63c40

View File

@ -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;