diff options
Diffstat (limited to 'sys/dev/ic/lance.c')
-rw-r--r-- | sys/dev/ic/lance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/lance.c b/sys/dev/ic/lance.c index 4d29cf1bd48..7f1b6492f60 100644 --- a/sys/dev/ic/lance.c +++ b/sys/dev/ic/lance.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lance.c,v 1.2 2013/11/26 09:50:33 mpi Exp $ */ +/* $OpenBSD: lance.c,v 1.3 2014/07/13 23:10:23 deraadt Exp $ */ /* $NetBSD: lance.c,v 1.46 2012/02/02 19:43:03 tls Exp $ */ /*- @@ -247,9 +247,9 @@ lance_config(struct lance_softc *sc) if_attach(ifp); ether_ifattach(ifp); - sc->sc_rbufaddr = malloc(sc->sc_nrbuf * sizeof(int), M_DEVBUF, + sc->sc_rbufaddr = mallocarray(sc->sc_nrbuf, sizeof(int), M_DEVBUF, M_WAITOK); - sc->sc_tbufaddr = malloc(sc->sc_ntbuf * sizeof(int), M_DEVBUF, + sc->sc_tbufaddr = mallocarray(sc->sc_ntbuf, sizeof(int), M_DEVBUF, M_WAITOK); } |