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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 6faf442..6fc7417 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -388,12 +388,12 @@ ptrace(struct thread *td, struct ptrace_args *uap)
return (ESRCH);
}
}
- if (p_cansee(td->td_proc, p)) {
+ if (p_cansee(td, p)) {
error = ESRCH;
goto fail;
}
- if ((error = p_candebug(td->td_proc, p)) != 0)
+ if ((error = p_candebug(td, p)) != 0)
goto fail;
/*
OpenPOWER on IntegriCloud