From f4397605068e68d5d80d75cd9c8059244773d772 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 7 Aug 2010 07:08:34 +0000 Subject: [PATCH] In the resume case we need to check IFF_UP --- sys/dev/pci/if_fxp_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1