Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix inverted ktrop() return value - oops!
details: https://anonhg.NetBSD.org/src/rev/6e25dab4c01a
branches: trunk
changeset: 790076:6e25dab4c01a
user: martin <martin%NetBSD.org@localhost>
date: Mon Sep 16 09:25:56 2013 +0000
description:
Fix inverted ktrop() return value - oops!
Noted by Nicolas Joly.
diffstat:
sys/kern/kern_ktrace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 32e92f8f5dd2 -r 6e25dab4c01a sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c Sun Sep 15 19:27:22 2013 +0000
+++ b/sys/kern/kern_ktrace.c Mon Sep 16 09:25:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ktrace.c,v 1.162 2013/09/14 20:20:09 martin Exp $ */
+/* $NetBSD: kern_ktrace.c,v 1.163 2013/09/16 09:25:56 martin Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.162 2013/09/14 20:20:09 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.163 2013/09/16 09:25:56 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1322,7 +1322,7 @@
mutex_exit(&ktrace_lock);
mutex_exit(p->p_lock);
- return error ? 1 : 0;
+ return error ? 0 : 1;
}
int
Home |
Main Index |
Thread Index |
Old Index