summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-02-07 06:19:55 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-02-07 06:19:55 +0000
commit25094133466538fabe1be33900cdc597b23f54f2 (patch)
tree7a0ed86ed992b97a64d7cd467f0c785035baa63c /sys/arch/amd64
parentfc1610c2396d6ecab2dcea5ea2780d75f9016a40 (diff)
Use M_WAITOK to show we don't need to check for NULL.
ok deraadt@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/mpbios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/mpbios.c b/sys/arch/amd64/amd64/mpbios.c
index 29fc18cfa2a..abbe1f3939b 100644
--- a/sys/arch/amd64/amd64/mpbios.c
+++ b/sys/arch/amd64/amd64/mpbios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios.c,v 1.28 2017/10/14 04:44:43 jsg Exp $ */
+/* $OpenBSD: mpbios.c,v 1.29 2018/02/07 06:19:54 krw Exp $ */
/* $NetBSD: mpbios.c,v 1.7 2003/05/15 16:32:50 fvdl Exp $ */
/*-
@@ -556,9 +556,9 @@ mpbios_scan(struct device *self)
}
mp_busses = mallocarray(mp_nbusses, sizeof(struct mp_bus),
- M_DEVBUF, M_NOWAIT|M_ZERO);
+ M_DEVBUF, M_WAITOK|M_ZERO);
mp_intrs = mallocarray(intr_cnt, sizeof(struct mp_intr_map),
- M_DEVBUF, M_NOWAIT);
+ M_DEVBUF, M_WAITOK);
/* re-walk the table, recording info of interest */
position = (const u_int8_t *)mp_cth + sizeof(*mp_cth);