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 return early holding a lock!
details: https://anonhg.NetBSD.org/src/rev/ec617defa5b7
branches: trunk
changeset: 821150:ec617defa5b7
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 26 03:54:01 2017 +0000
description:
don't return early holding a lock!
diffstat:
sys/kern/sys_ptrace_common.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r e7df1db90ebc -r ec617defa5b7 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Thu Jan 26 01:36:35 2017 +0000
+++ b/sys/kern/sys_ptrace_common.c Thu Jan 26 03:54:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.11 2017/01/25 17:55:47 christos Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.12 2017/01/26 03:54:01 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.11 2017/01/25 17:55:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.12 2017/01/26 03:54:01 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -626,8 +626,6 @@
uio.uio_resid = tmp - uio.uio_offset;
piod.piod_len = iov.iov_len = uio.uio_resid;
error = process_auxv_offset(t, &uio);
- if (error)
- return error;
break;
default:
error = EINVAL;
Home |
Main Index |
Thread Index |
Old Index