From: deraadt Date: Sat, 7 Aug 2010 07:08:34 +0000 (+0000) Subject: In the resume case we need to check IFF_UP X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f4397605068e68d5d80d75cd9c8059244773d772;p=openbsd In the resume case we need to check IFF_UP --- diff --git a/sys/dev/pci/if_fxp_pci.c b/sys/dev/pci/if_fxp_pci.c index 051eac8cfac..6c7d4a9ba3d 100644 --- a/sys/dev/pci/if_fxp_pci.c +++ b/sys/dev/pci/if_fxp_pci.c @@ -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;