From 149943d4909712305e1a2fddd6e67c2f033a4f3c Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Wed, 19 Oct 2016 08:23:38 +0000 Subject: The first argument to process_domem() and its uio_procp should be curproc ok kettenis@ --- sys/arch/alpha/alpha/process_machdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/alpha/process_machdep.c b/sys/arch/alpha/alpha/process_machdep.c index 6fe711eb74a..86d3874dd05 100644 --- a/sys/arch/alpha/alpha/process_machdep.c +++ b/sys/arch/alpha/alpha/process_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: process_machdep.c,v 1.12 2014/01/26 17:40:09 miod Exp $ */ +/* $OpenBSD: process_machdep.c,v 1.13 2016/10/19 08:23:37 guenther Exp $ */ /* $NetBSD: process_machdep.c,v 1.7 1996/07/11 20:14:21 cgd Exp $ */ /*- @@ -180,8 +180,8 @@ ptrace_read_int(struct proc *p, vaddr_t addr, u_int32_t *v) uio.uio_resid = sizeof(u_int32_t); uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_READ; - uio.uio_procp = p; - return process_domem(curproc, p, &uio, PT_READ_I); + uio.uio_procp = curproc; + return process_domem(curproc, p->p_p, &uio, PT_READ_I); } int @@ -198,8 +198,8 @@ ptrace_write_int(struct proc *p, vaddr_t addr, u_int32_t v) uio.uio_resid = sizeof(u_int32_t); uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_WRITE; - uio.uio_procp = p; - return process_domem(curproc, p, &uio, PT_WRITE_I); + uio.uio_procp = curproc; + return process_domem(curproc, p->p_p, &uio, PT_WRITE_I); } u_int64_t -- cgit v1.2.3