summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2004-05-23 05:29:31 +0000
committermarco <marco@openbsd.org>2004-05-23 05:29:31 +0000
commitcfe61e4d35e6c0dc6b64a346bb6bd317df1997ab (patch)
tree27216386eb9e9b10a321400219f6a5295aad4012
parentsync (diff)
downloadwireguard-openbsd-cfe61e4d35e6c0dc6b64a346bb6bd317df1997ab.tar.xz
wireguard-openbsd-cfe61e4d35e6c0dc6b64a346bb6bd317df1997ab.zip
Hack to prevent uvm_fault when timeout_del deletes a non-existing timer during boot. ok krw@
-rw-r--r--sys/dev/ic/aic79xx_openbsd.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.h b/sys/dev/ic/aic79xx_openbsd.h
index 9e9fefd8cfc..e70a2711a3b 100644
--- a/sys/dev/ic/aic79xx_openbsd.h
+++ b/sys/dev/ic/aic79xx_openbsd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.h,v 1.2 2004/05/20 04:35:47 marco Exp $ */
+/* $OpenBSD: aic79xx_openbsd.h,v 1.3 2004/05/23 05:29:31 marco Exp $ */
/*
* FreeBSD platform specific driver option settings, data structures,
* function declarations and includes.
@@ -87,7 +87,8 @@
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
#endif
-/************************* Forward Declarations *******************************/typedef struct pci_attach_args * ahd_dev_softc_t;
+/************************* Forward Declarations *******************************/
+typedef struct pci_attach_args * ahd_dev_softc_t;
/***************************** Bus Space/DMA **********************************/
@@ -420,7 +421,10 @@ ahd_platform_scb_free(struct ahd_softc *ahd, struct scb *scb)
ahd->flags &= ~AHD_RESOURCE_SHORTAGE;
}
- timeout_del(&scb->xs->stimeout);
+ if (!cold) {
+ /* we are no longer in autoconf */
+ timeout_del(&scb->xs->stimeout);
+ }
ahd_unlock(ahd, &s);
}