artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214d2c8
)
When suspending, only call athn_stop() when IFF_RUNNING is set.
author
kettenis
<kettenis@openbsd.org>
Thu, 22 Jul 2010 10:19:37 +0000
(10:19 +0000)
committer
kettenis
<kettenis@openbsd.org>
Thu, 22 Jul 2010 10:19:37 +0000
(10:19 +0000)
ok damien@
sys/dev/ic/athn.c
patch
|
blob
|
history
diff --git
a/sys/dev/ic/athn.c
b/sys/dev/ic/athn.c
index
3740840
..
0038016
100644
(file)
--- a/
sys/dev/ic/athn.c
+++ b/
sys/dev/ic/athn.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: athn.c,v 1.5
6 2010/07/21 14:01:58
kettenis Exp $ */
+/* $OpenBSD: athn.c,v 1.5
7 2010/07/22 10:19:37
kettenis Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@
-2707,7
+2707,8
@@
athn_suspend(struct athn_softc *sc)
{
struct ifnet *ifp = &sc->sc_ic.ic_if;
- athn_stop(ifp, 1);
+ if (ifp->if_flags & IFF_RUNNING)
+ athn_stop(ifp, 1);
}
void