summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-08-24 21:28:47 +0000
committerbluhm <bluhm@openbsd.org>2015-08-24 21:28:47 +0000
commit137a6453b74db4acd1e8a87283c20ac41cc1ee0f (patch)
tree7ec542d944ea63b12e6098afaf2536f9378360c8 /sys
parentTypos; ok kettenis@ (diff)
downloadwireguard-openbsd-137a6453b74db4acd1e8a87283c20ac41cc1ee0f.tar.xz
wireguard-openbsd-137a6453b74db4acd1e8a87283c20ac41cc1ee0f.zip
The bridge list is a relict, delete the remaining LIST_REMOVE.
This fixes a crash during ifconfig bridge0 destroy. OK mpi@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_bridge.c7
-rw-r--r--sys/net/if_bridge.h3
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 5193c50017e..eba150c93c7 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.258 2015/08/18 09:01:16 mpi Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.259 2015/08/24 21:28:47 bluhm Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -243,7 +243,6 @@ bridge_clone_destroy(struct ifnet *ifp)
struct bridge_softc *sc = ifp->if_softc;
struct bridge_iflist *bif;
struct ifih *bridge_ifih;
- int s;
bridge_stop(sc);
bridge_rtflush(sc, IFBF_FLUSHALL);
@@ -254,10 +253,6 @@ bridge_clone_destroy(struct ifnet *ifp)
free(bif, M_DEVBUF, 0);
}
- s = splnet();
- LIST_REMOVE(sc, sc_list);
- splx(s);
-
bstp_destroy(sc->sc_stp);
/* Undo pseudo-driver changes. */
diff --git a/sys/net/if_bridge.h b/sys/net/if_bridge.h
index f6ec74824be..4778f690632 100644
--- a/sys/net/if_bridge.h
+++ b/sys/net/if_bridge.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.h,v 1.44 2015/07/02 09:40:02 mpi Exp $ */
+/* $OpenBSD: if_bridge.h,v 1.45 2015/08/24 21:28:47 bluhm Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -421,7 +421,6 @@ struct bridge_rtnode {
*/
struct bridge_softc {
struct ifnet sc_if; /* the interface */
- LIST_ENTRY(bridge_softc) sc_list; /* all bridges */
struct bridge_iflist *sc_root_port;
u_int32_t sc_brtmax; /* max # addresses */
u_int32_t sc_brtcnt; /* current # addrs */