summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-09-13 18:40:25 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-09-13 18:40:25 +0000
commitc3e8b5a371bca0bc2ed684c2f847a6a4203293c9 (patch)
treec4b990accb9e5a4bd9d51e517b29fa8678d23631 /sys/dev/ic
parentf8e305d58decffadc8750ca9ac0dc454f93f45eb (diff)
Add if_detach(). Fixes kernel crash when detaching cardbus device.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/bwi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 0150c5f9fd0..6240292027d 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.8 2007/09/13 12:33:18 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.9 2007/09/13 18:40:24 mglocker Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -5503,6 +5503,7 @@ bwi_detach(void *arg)
bwi_stop(sc);
ieee80211_ifdetach(ifp);
+ if_detach(ifp);
for (i = 0; i < sc->sc_nmac; ++i)
bwi_mac_detach(&sc->sc_mac[i]);