artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b45df
)
Use correct size in allocarray() call.
author
kettenis
<kettenis@openbsd.org>
Fri, 12 Jan 2018 14:53:37 +0000
(14:53 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 12 Jan 2018 14:53:37 +0000
(14:53 +0000)
ok patrick@
sys/arch/arm64/dev/ampintc.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/dev/ampintc.c
b/sys/arch/arm64/dev/ampintc.c
index
6e5fecf
..
7bf7add
100644
(file)
--- 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;