diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-02-08 10:04:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-07 14:23:25 +0200 |
commit | d9027851bd212a95f746179cc1acd1b06d238d6e (patch) | |
tree | ff52d6ca2e8f6f5ffc5be62bcebab1f1b81805dd | |
parent | Add the MSG_TLSAPPDATA flag to indicate "return ENXIO" for non-application TL... (diff) | |
download | rtems-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.h | 2 |
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 */ |