diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index e61d3630a72..1e6822fa4f0 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1733,9 +1733,7 @@ linux_getppid(struct thread *td, struct linux_getppid_args *args) printf(ARGS(getppid, "")); #endif - PROC_LOCK(td->td_proc); - td->td_retval[0] = td->td_proc->p_pptr->p_pid; - PROC_UNLOCK(td->td_proc); + td->td_retval[0] = kern_getppid(td); return (0); }