diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-02-21 18:54:52 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-02-22 20:52:04 +0000 |
| commit | dfcd04c4c811096e5183a406d0f001a7c0ffa60a (patch) | |
| tree | 7428f3e60c2739709725011afcdb0c674c3ce94c | |
| parent | 6d15e0efa0b3a85cf69f3c72d3f24f4f97850a03 (diff) | |
net/if_vlan.c: do not leak vlan sx slock in vlan_clone_dump_nl()
Reported by: pho
Reviewed by: markj
Fixes: d4062b9f16e46f039f2b5b40dd35592b5dabf00c
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D55447
| -rw-r--r-- | sys/net/if_vlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index f74e3cb209fe..c254e2aa3107 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -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. |
