mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 04:59:59 +08:00
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
This commit is contained in:

committed by
Sebastian Huber

parent
4de7ab7e97
commit
d9027851bd
@@ -41,6 +41,8 @@ MALLOC_DECLARE(M_IFADDR);
|
|||||||
MALLOC_DECLARE(M_IFMADDR);
|
MALLOC_DECLARE(M_IFMADDR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern struct sx ifnet_detach_sxlock;
|
||||||
|
|
||||||
#define ifr_buffer ifr_ifru.ifru_buffer /* user supplied buffer with its length */
|
#define ifr_buffer ifr_ifru.ifru_buffer /* user supplied buffer with its length */
|
||||||
#define ifr_data ifr_ifru.ifru_data /* for use by interface */
|
#define ifr_data ifr_ifru.ifru_data /* for use by interface */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user