mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 05:11:15 +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
60f67a1f37
commit
ee823c1666
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user