Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch/powerpc set error return on error (fro...
details: https://anonhg.NetBSD.org/src/rev/b5911b61c34d
branches: trunk
changeset: 332540:b5911b61c34d
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 26 20:32:52 2014 +0000
description:
set error return on error (from max)
diffstat:
sys/compat/linux/arch/powerpc/linux_ptrace.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 1ee8e21c4b72 -r b5911b61c34d sys/compat/linux/arch/powerpc/linux_ptrace.c
--- a/sys/compat/linux/arch/powerpc/linux_ptrace.c Fri Sep 26 19:28:03 2014 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_ptrace.c Fri Sep 26 20:32:52 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $ */
+/* $NetBSD: linux_ptrace.c,v 1.27 2014/09/26 20:32:52 christos Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.27 2014/09/26 20:32:52 christos Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -159,6 +159,7 @@
mutex_enter(proc_lock);
if ((t = proc_find(SCARG(uap, pid))) == NULL) {
mutex_exit(proc_lock);
+ error = ESRCH;
goto out;
}
mutex_enter(t->p_lock);
Home |
Main Index |
Thread Index |
Old Index