Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/kern adjust some pretty likely broke...
details: https://anonhg.NetBSD.org/src/rev/dca99a7ecddb
branches: trunk
changeset: 763138:dca99a7ecddb
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Mar 10 19:35:24 2011 +0000
description:
adjust some pretty likely broken assertion (stksize is hardcoded
from caller, but not used here). now zpool doesn't cause a
kernel crash anymore.
diffstat:
external/cddl/osnet/sys/kern/misc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a48508d8b7da -r dca99a7ecddb external/cddl/osnet/sys/kern/misc.c
--- a/external/cddl/osnet/sys/kern/misc.c Thu Mar 10 19:32:39 2011 +0000
+++ b/external/cddl/osnet/sys/kern/misc.c Thu Mar 10 19:35:24 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.2 2010/02/28 14:45:47 haad Exp $ */
+/* $NetBSD: misc.c,v 1.3 2011/03/10 19:35:24 pooka Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -90,7 +90,8 @@
int error;
lwp_t *thr;
- ASSERT(stk == NULL && stksize == 0 && len == 0);
+ //ASSERT(stk == NULL && stksize == 0 && len == 0);
+ ASSERT(stk == NULL && len == 0);
ASSERT(state == TS_RUN);
error = kthread_create(pri, KTHREAD_MPSAFE, NULL,
Home |
Main Index |
Thread Index |
Old Index