From 1f05d3e05e731e9224237df9ac6de017a6dcf9f9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 7 Aug 2010 07:08:35 +0000 Subject: 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(-) (limited to 'sys/dev') 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; -- cgit v1.2.3