From 87b46f71594d3c10bbec87c8c459dd1ede6a98f8 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Mon, 29 Nov 2021 19:19:01 +0000 Subject: The network stack currently uses IPL_SOFTNET. Consistently initialize the TDB sadb mutex with that. The old IPL_NET was chosen by accident. OK mpi@ --- sys/netinet/ip_ipsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 21be98c83a2..197720d8309 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.257 2021/11/29 15:39:59 bluhm Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.258 2021/11/29 19:19:00 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -186,7 +186,7 @@ const struct xformsw *const xformswNXFORMSW = &xformsw[nitems(xformsw)]; #define TDB_HASHSIZE_INIT 32 /* Protected by the tdb_sadb_mtx. */ -struct mutex tdb_sadb_mtx = MUTEX_INITIALIZER(IPL_NET); +struct mutex tdb_sadb_mtx = MUTEX_INITIALIZER(IPL_SOFTNET); static SIPHASH_KEY tdbkey; static struct tdb **tdbh; static struct tdb **tdbdst; -- cgit v1.2.3