Module Name:    src
Committed By:   joe
Date:           Fri Feb  7 23:37:46 UTC 2025

Modified Files:
        src/sys/net/npf: npf_tableset.c

Log Message:
introduce a kernel boolean assertion to ensure the running thread holds the 
mutex


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/net/npf/npf_tableset.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/npf/npf_tableset.c
diff -u src/sys/net/npf/npf_tableset.c:1.42 src/sys/net/npf/npf_tableset.c:1.43
--- src/sys/net/npf/npf_tableset.c:1.42	Fri Feb 24 11:03:01 2023
+++ src/sys/net/npf/npf_tableset.c	Fri Feb  7 23:37:46 2025
@@ -46,7 +46,7 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.42 2023/02/24 11:03:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.43 2025/02/07 23:37:46 joe Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -866,7 +866,7 @@ npf_table_gc(npf_t *npf, npf_table_t *t)
 
 	ref = thmap_stage_gc(t->t_map);
 	if (npf) {
-		npf_config_locked_p(npf);
+		KASSERT(npf_config_locked_p(npf));
 		npf_config_sync(npf);
 	}
 	thmap_gc(t->t_map, ref);

Reply via email to