diff options
author | 2009-11-26 15:53:15 +0000 | |
---|---|---|
committer | 2009-11-26 15:53:15 +0000 | |
commit | 7636336ac08c152d9f3fb83165ed5ea60b41c62e (patch) | |
tree | f6cd04b036ea10786e941996accb958feeb1b82d /sys/dev/pci/if_em.c | |
parent | By popular demand and peer pressure, check-in work in progress work to support (diff) | |
download | wireguard-openbsd-7636336ac08c152d9f3fb83165ed5ea60b41c62e.tar.xz wireguard-openbsd-7636336ac08c152d9f3fb83165ed5ea60b41c62e.zip |
em_stop() removes IFF_RUNNING flag, so we should rely on the IFF_UP being set
ok deraadt@
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r-- | sys/dev/pci/if_em.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index d1acfddd3bb..caed84bf3d7 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.231 2009/11/26 13:47:02 dms Exp $ */ +/* $OpenBSD: if_em.c,v 1.232 2009/11/26 15:53:15 dms Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -1882,7 +1882,7 @@ em_activate(struct device *self, int act) case DVACT_RESUME: em_stop(sc, 0); rv = config_activate_children(self, act); - if (ifp->if_flags & IFF_RUNNING) + if (ifp->if_flags & IFF_UP) em_init(sc); break; } |