summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nep.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-09 19:59:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-09 19:59:44 +0000
commit30ab3ba79f2abb46896c13ef3743365e6bdd0568 (patch)
treec8fa061bfa55ef8b48afe50b26b65b656176fb5d /sys/dev/pci/if_nep.c
parentf2e8c8ca4957512341988bb06af6a8e43ee9da63 (diff)
malloc -> mallocarray; a typo
Diffstat (limited to 'sys/dev/pci/if_nep.c')
-rw-r--r--sys/dev/pci/if_nep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nep.c b/sys/dev/pci/if_nep.c
index d824f92b335..f22efe0d718 100644
--- a/sys/dev/pci/if_nep.c
+++ b/sys/dev/pci/if_nep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nep.c,v 1.28 2017/04/09 18:16:00 dhill Exp $ */
+/* $OpenBSD: if_nep.c,v 1.29 2017/04/09 19:59:43 deraadt Exp $ */
/*
* Copyright (c) 2014, 2015 Mark Kettenis
*
@@ -1561,7 +1561,7 @@ nep_up(struct nep_softc *sc)
return;
sc->sc_rbdesc = NEP_DMA_KVA(sc->sc_rbring);
- sc->sc_rb = malloc(NEP_NRBDESC, sizeof(struct nep_block),
+ sc->sc_rb = mallocarray(NEP_NRBDESC, sizeof(struct nep_block),
M_DEVBUF, M_WAITOK);
for (i = 0; i < NEP_NRBDESC; i++) {
rb = &sc->sc_rb[i];