summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-09-23 22:59:44 +0000
committermglocker <mglocker@openbsd.org>2007-09-23 22:59:44 +0000
commit5e9d80598bcf4d55eede35deca96c54e0e2fdd7b (patch)
treec5deb638e5095eb9b60aa16a89cb451bd130b964
parentAdd my working Compaq R4035 onboard BCM4306. ok mglocker@ (diff)
downloadwireguard-openbsd-5e9d80598bcf4d55eede35deca96c54e0e2fdd7b.tar.xz
wireguard-openbsd-5e9d80598bcf4d55eede35deca96c54e0e2fdd7b.zip
Fix page fault kernel crash when changing media and device is up.
-rw-r--r--sys/dev/ic/bwi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 9832cbbd629..6b3d5c895ec 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.44 2007/09/23 22:10:53 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.45 2007/09/23 22:59:44 mglocker Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -6688,7 +6688,7 @@ bwi_media_change(struct ifnet *ifp)
return (error);
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- bwi_init(ifp->if_softc);
+ bwi_init(ifp);
return (0);
}