summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-11-24 00:04:33 +0000
committerVitaliy Makkoveev <mvs@cvs.openbsd.org>2022-11-24 00:04:33 +0000
commit87908395cd53fccbfb3768c720c45384ddca34b6 (patch)
tree69333e9f8fde528096197f86dd3997cad09f4af3 /sys/net
parent9d498d27a94b294c4da1017568c919792525008d (diff)
Remove netlock assertion within PF_LOCK(). The netlock should be taken
first, but only if both locks are taken. ok dlg@ sashan@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfvar_priv.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/pfvar_priv.h b/sys/net/pfvar_priv.h
index 1d674711cf8..ec08d6c0aba 100644
--- a/sys/net/pfvar_priv.h
+++ b/sys/net/pfvar_priv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar_priv.h,v 1.21 2022/11/11 17:12:30 dlg Exp $ */
+/* $OpenBSD: pfvar_priv.h,v 1.22 2022/11/24 00:04:32 mvs Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -278,7 +278,6 @@ extern struct rwlock pf_lock;
extern struct rwlock pf_state_lock;
#define PF_LOCK() do { \
- NET_ASSERT_LOCKED(); \
rw_enter_write(&pf_lock); \
} while (0)