HomeFreeBSD

if_ovpn: Fix memory leak in VNET during unload

Description

if_ovpn: Fix memory leak in VNET during unload

Unloading if_ovpn while it's in use by other vnets causes
memory leaks and panics.
Fix this by reverting VNET_SYSUNINIT and adjusting the SI_SUB
initialization order.

Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54175

Details

Provenance
pouriaAuthored on Jul 6 2026, 4:23 PM
Reviewer
markj
Differential Revision
D54175: if_ovpn: fix memory leak in VNET
Parents
rG7a0b9e30a5ba: libllvmminimal: Fix building with LLVM < 21 on riscv64
Branches
Unknown
Tags
Unknown