summaryrefslogtreecommitdiff
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2010-11-20 14:23:10 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2010-11-20 14:23:10 +0000
commit5fe9e0fb79d17ad7e86d2ace950fdd36bff7c603 (patch)
treed1d5974dff1243e70ab00933bff2d10066788cac /sys/net/bridgestp.c
parent7f474332e48e1508c540a29f43e5f4ad8698695e (diff)
remove bs_list occurrences. fixes panic on destroy.
ok from the m guild: mikeb@ miod@ mpf@
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index fa44377f90f..27e94daec79 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bridgestp.c,v 1.38 2010/10/31 15:14:30 mpf Exp $ */
+/* $OpenBSD: bridgestp.c,v 1.39 2010/11/20 14:23:09 fgsch Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -1958,18 +1958,13 @@ bstp_create(struct ifnet *ifp)
void
bstp_destroy(struct bstp_state *bs)
{
- int s;
-
if (bs == NULL)
return;
if (!LIST_EMPTY(&bs->bs_bplist))
panic("bstp still active");
- s = splnet();
- LIST_REMOVE(bs, bs_list);
free(bs, M_DEVBUF);
- splx(s);
}
void