net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl()

Reported by:	pho
Reviewed by:	markj
Fixes:	d4062b9f16
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D55447
This commit is contained in:
Konstantin Belousov
2026-02-21 20:54:52 +02:00
parent 6d15e0efa0
commit dfcd04c4c8
+1
View File
@@ -1345,6 +1345,7 @@ vlan_clone_dump_nl(struct ifnet *ifp, struct nl_writer *nw)
VLAN_SLOCK();
if (__predict_false((ifv = ifp->if_softc) == NULL)) {
VLAN_SUNLOCK();
/*
* XXXGL: the interface already went through if_dead(). This
* check to be removed when we got better interface removal.