summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-01-12 14:53:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-01-12 14:53:38 +0000
commit9321ce76dc568d0d60b7478782b6ae26bcd46629 (patch)
tree3ad071c25c3566da5a4fbd28bf3a2c6afd0a006e /sys
parent0f1cadf15efe4fc26d76a8c420336348f8a89191 (diff)
Use correct size in allocarray() call.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm64/dev/ampintc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/ampintc.c b/sys/arch/arm64/dev/ampintc.c
index 6e5fecf0ec2..7bf7add2b6a 100644
--- a/sys/arch/arm64/dev/ampintc.c
+++ b/sys/arch/arm64/dev/ampintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ampintc.c,v 1.9 2017/04/30 16:45:45 mpi Exp $ */
+/* $OpenBSD: ampintc.c,v 1.10 2018/01/12 14:53:37 kettenis Exp $ */
/*
* Copyright (c) 2007,2009,2011 Dale Rahn <drahn@openbsd.org>
*
@@ -727,7 +727,7 @@ ampintc_msi_attach(struct device *parent, struct device *self, void *aux)
printf(": nspi %d\n", sc->sc_nspi);
- sc->sc_spi = mallocarray(sc->sc_nspi, sizeof(int), M_DEVBUF,
+ sc->sc_spi = mallocarray(sc->sc_nspi, sizeof(void *), M_DEVBUF,
M_WAITOK|M_ZERO);
sc->sc_ic.ic_node = faa->fa_node;