Module Name: src
Committed By: maxv
Date: Sat Feb 22 09:24:05 UTC 2020
Modified Files:
src/sys/kern: sys_ptrace_common.c
Log Message:
pass the address of the field, instead of relying on it being the first
field of the structure, no functional change, ok kamil
To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/kern/sys_ptrace_common.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_ptrace_common.c
diff -u src/sys/kern/sys_ptrace_common.c:1.77 src/sys/kern/sys_ptrace_common.c:1.78
--- src/sys/kern/sys_ptrace_common.c:1.77 Fri Jan 3 00:37:29 2020
+++ src/sys/kern/sys_ptrace_common.c Sat Feb 22 09:24:05 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.77 2020/01/03 00:37:29 kamil Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.78 2020/02/22 09:24:05 maxv Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.77 2020/01/03 00:37:29 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.78 2020/02/22 09:24:05 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -804,7 +804,7 @@ ptrace_lwpstatus(struct proc *t, struct
__func__, sizeof(lwpid_t), data, sizeof(pls)));
return EINVAL;
}
- error = copyin(addr, &pls, sizeof(lwpid_t));
+ error = copyin(addr, &pls.pl_lwpid, sizeof(lwpid_t));
if (error)
return error;