From: deraadt Date: Sun, 9 Apr 2017 19:59:43 +0000 (+0000) Subject: malloc -> mallocarray; a typo X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=94171a9d9e56da93481d080cd5afdc20204517d1;p=openbsd malloc -> mallocarray; a typo --- 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];