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:
parent
3a3ae877a4
commit
5c0cc63c40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user