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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user