In the resume case we need to check IFF_UP
authorderaadt <deraadt@openbsd.org>
Sat, 7 Aug 2010 07:08:34 +0000 (07:08 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 7 Aug 2010 07:08:34 +0000 (07:08 +0000)
sys/dev/pci/if_fxp_pci.c

index 051eac8..6c7d4a9 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_fxp_pci.c,v 1.54 2010/08/07 07:04:35 deraadt Exp $ */
+/*     $OpenBSD: if_fxp_pci.c,v 1.55 2010/08/07 07:08:34 deraadt Exp $ */
 
 /*
  * Copyright (c) 1995, David Greenman
@@ -296,7 +296,7 @@ fxp_pci_activate(struct device *self, int act)
                break;
        case DVACT_RESUME:
                config_activate_children(self, act);
-               if (ifp->if_flags & IFF_RUNNING)
+               if (ifp->if_flags & IFF_UP)
                        workq_queue_task(NULL, &psc->psc_resume_wqt, 0,
                            fxp_pci_resume, sc, NULL);
                break;