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:
jhb 2002-10-16 16:28:33 +00:00
parent 86cb4f38ac
commit 4946fba66e

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;