diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-09-23 22:59:45 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-09-23 22:59:45 +0000 |
commit | 25d5dc7b41abc4f1a853e19b37371e04f1e5ff0b (patch) | |
tree | c9211836f8337ae133901ae78926b08989940935 /sys/dev | |
parent | 0666ad5aa4fac830c80e983aa969fbb460aa9c4b (diff) |
Fix page fault kernel crash when changing media and device is up.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/bwi.c | 4 |
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); } |