summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2021-02-08 10:04:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-07 14:23:25 +0200
commitd9027851bd212a95f746179cc1acd1b06d238d6e (patch)
treeff52d6ca2e8f6f5ffc5be62bcebab1f1b81805dd
parentAdd the MSG_TLSAPPDATA flag to indicate "return ENXIO" for non-application TL... (diff)
downloadrtems-libbsd-d9027851bd212a95f746179cc1acd1b06d238d6e.tar.bz2
Widen ifnet_detach_sxlock coverage
Widen the ifnet_detach_sxlock to cover the entire vnet sysuninit code. This ensures that we can't end up having the vnet_sysuninit free the UDP pcb while the detach code is running and trying to purge the UDP pcb. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28530
-rw-r--r--rtemsbsd/include/machine/_kernel_if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/_kernel_if.h b/rtemsbsd/include/machine/_kernel_if.h
index 08086658..f89adc13 100644
--- a/rtemsbsd/include/machine/_kernel_if.h
+++ b/rtemsbsd/include/machine/_kernel_if.h
@@ -41,6 +41,8 @@ MALLOC_DECLARE(M_IFADDR);
MALLOC_DECLARE(M_IFMADDR);
#endif
+extern struct sx ifnet_detach_sxlock;
+
#define ifr_buffer ifr_ifru.ifru_buffer /* user supplied buffer with its length */
#define ifr_data ifr_ifru.ifru_data /* for use by interface */