summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvs <mvs@openbsd.org>2021-01-02 13:16:40 +0000
committermvs <mvs@openbsd.org>2021-01-02 13:16:40 +0000
commit74fca67b4da04cf4e5eba56f9bc666fac7e0246c (patch)
tree44553deeea802d329669864aa7d15e53f4c6926f
parentDon't call if_deactivate() in bridge_clone_destroy(). Following (diff)
downloadwireguard-openbsd-74fca67b4da04cf4e5eba56f9bc666fac7e0246c.tar.xz
wireguard-openbsd-74fca67b4da04cf4e5eba56f9bc666fac7e0246c.zip
Don't call if_deactivate() in switch_clone_destroy(). Following
if_detach() will do this. ok kn@
-rw-r--r--sys/net/if_switch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_switch.c b/sys/net/if_switch.c
index 42a593c3e9c..b90742ffb32 100644
--- a/sys/net/if_switch.c
+++ b/sys/net/if_switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_switch.c,v 1.38 2020/08/28 12:01:48 mvs Exp $ */
+/* $OpenBSD: if_switch.c,v 1.39 2021/01/02 13:16:40 mvs Exp $ */
/*
* Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
@@ -208,7 +208,6 @@ switch_clone_destroy(struct ifnet *ifp)
bstp_destroy(sc->sc_stp);
swofp_destroy(sc);
switch_dev_destroy(sc);
- if_deactivate(ifp);
if_detach(ifp);
free(sc, M_DEVBUF, sizeof(*sc));