Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf Temporary hack to make PR 56802 (when it happens...
details: https://anonhg.NetBSD.org/src/rev/4a8058fe7783
branches: trunk
changeset: 365849:4a8058fe7783
user: martin <martin%NetBSD.org@localhost>
date: Thu Apr 28 15:43:51 2022 +0000
description:
Temporary hack to make PR 56802 (when it happens) tell us for sure that
it is caused by KM_NOSLEEP memory allocation failure.
diffstat:
sys/net/npf/npf_params.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r d6d049de0176 -r 4a8058fe7783 sys/net/npf/npf_params.c
--- a/sys/net/npf/npf_params.c Thu Apr 28 10:05:47 2022 +0000
+++ b/sys/net/npf/npf_params.c Thu Apr 28 15:43:51 2022 +0000
@@ -26,7 +26,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_params.c,v 1.3 2020/05/30 14:16:56 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_params.c,v 1.4 2022/04/28 15:43:51 martin Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -184,7 +184,9 @@
void *ret __diagused;
ret = thmap_put(pinfo->map, name, strlen(name), param);
- KASSERT(ret == param);
+ KASSERTMSG(ret == param,
+ "parameter insertion failed: ret=%p, param=%p",
+ ret, param);
/* Assign the default value. */
KASSERT(param->default_val >= param->min);
Home |
Main Index |
Thread Index |
Old Index