Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern In itimer_arm_real(), KASSERT that it->it_dying is ...
details: https://anonhg.NetBSD.org/src/rev/f73843a6abb4
branches: trunk
changeset: 373573:f73843a6abb4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Feb 18 14:04:17 2023 +0000
description:
In itimer_arm_real(), KASSERT that it->it_dying is false. This was
already implicitly assumed, but make it explicit in hopes of tracking
down kern/57226.
diffstat:
sys/kern/kern_time.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r cf5880119773 -r f73843a6abb4 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Sat Feb 18 13:28:05 2023 +0000
+++ b/sys/kern/kern_time.c Sat Feb 18 14:04:17 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.218 2022/10/26 23:23:52 riastradh Exp $ */
+/* $NetBSD: kern_time.c,v 1.219 2023/02/18 14:04:17 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009, 2020
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.218 2022/10/26 23:23:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.219 2023/02/18 14:04:17 thorpej Exp $");
#include <sys/param.h>
#include <sys/resourcevar.h>
@@ -809,6 +809,8 @@
static void
itimer_arm_real(struct itimer * const it)
{
+ KASSERT(!it->it_dying);
+
/*
* Don't need to check tshzto() return value, here.
* callout_reset() does it for us.
Home |
Main Index |
Thread Index |
Old Index