Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern don't ignore error from copyout_piod



details:   https://anonhg.NetBSD.org/src/rev/e83d0e9b0fd8
branches:  trunk
changeset: 828867:e83d0e9b0fd8
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 08 04:45:53 2018 +0000

description:
don't ignore error from copyout_piod

diffstat:

 sys/kern/sys_ptrace_common.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fbdbf9988d0b -r e83d0e9b0fd8 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c      Mon Jan 08 04:00:31 2018 +0000
+++ b/sys/kern/sys_ptrace_common.c      Mon Jan 08 04:45:53 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_ptrace_common.c,v 1.32 2017/12/28 18:29:45 christos Exp $  */
+/*     $NetBSD: sys_ptrace_common.c,v 1.33 2018/01/08 04:45:53 christos 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.32 2017/12/28 18:29:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.33 2018/01/08 04:45:53 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -1055,7 +1055,7 @@
                        break;
                if ((error = ptrace_doio(l, t, lt, &piod, addr, false)) != 0)
                        break;
-               (void) ptm->ptm_copyout_piod(&piod, addr, data);
+               error = ptm->ptm_copyout_piod(&piod, addr, data);
                break;
 
        case PT_DUMPCORE:



Home | Main Index | Thread Index | Old Index