summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2019-01-07 23:44:11 +0000
committerbluhm <bluhm@openbsd.org>2019-01-07 23:44:11 +0000
commite0aa32ff559e8d60e43136b141ea3bbcfa796022 (patch)
treef2153ccddc026f9481c4eeea53e719013e125e2e
parentshort circuit mail check if MAIL is unset. ok anton (diff)
downloadwireguard-openbsd-e0aa32ff559e8d60e43136b141ea3bbcfa796022.tar.xz
wireguard-openbsd-e0aa32ff559e8d60e43136b141ea3bbcfa796022.zip
Extents code has its own set of flags and does not use malloc's.
The code in pci_init_extents() accidently passed M_NOWAIT which is EX_FAST and does no harm. Replace it with EX_NOWAIT. from Christian Ludwig; OK kettenis@
-rw-r--r--sys/arch/i386/pci/pci_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c
index b712ff242ed..0e4416af08e 100644
--- a/sys/arch/i386/pci/pci_machdep.c
+++ b/sys/arch/i386/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.84 2018/08/19 08:23:47 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.85 2019/01/07 23:44:11 bluhm Exp $ */
/* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */
/*-
@@ -915,7 +915,7 @@ pci_init_extents(void)
NULL, 0, EX_NOWAIT | EX_FILLED);
if (pciio_ex == NULL)
return;
- extent_free(pciio_ex, 0, 0x10000, M_NOWAIT);
+ extent_free(pciio_ex, 0, 0x10000, EX_NOWAIT);
}
if (pcimem_ex == NULL) {