Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf npf_portmap_flush: remove invalid assert (this r...
details: https://anonhg.NetBSD.org/src/rev/f8a17f023822
branches: trunk
changeset: 1000440:f8a17f023822
user: rmind <rmind%NetBSD.org@localhost>
date: Thu Jul 25 01:00:28 2019 +0000
description:
npf_portmap_flush: remove invalid assert (this routine can be callied via
the npf_destroy() path where the constraint is not applicable).
diffstat:
sys/net/npf/npf_portmap.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 93e2080c8884 -r f8a17f023822 sys/net/npf/npf_portmap.c
--- a/sys/net/npf/npf_portmap.c Thu Jul 25 00:59:04 2019 +0000
+++ b/sys/net/npf/npf_portmap.c Thu Jul 25 01:00:28 2019 +0000
@@ -35,7 +35,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_portmap.c,v 1.2 2019/07/23 08:25:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_portmap.c,v 1.3 2019/07/25 01:00:28 rmind Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -461,8 +461,6 @@
npf_portmap_t *pm = npf->portmap;
bitmap_t *bm;
- KASSERT(npf_config_locked_p(npf));
-
while ((bm = LIST_FIRST(&pm->bitmap_list)) != NULL) {
for (unsigned i = 0; i < PORTMAP_L0_WORDS; i++) {
uintptr_t bm1 = bm->bits0[i];
Home |
Main Index |
Thread Index |
Old Index