From 3e171169b10e67ce701afa04c6dab43b70a30b31 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 27 Aug 2009 20:41:36 +0000 Subject: malloc() last two args were swapped, amazing things did not break; ok kettenis@ --- sys/arch/socppc/dev/if_tsec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/socppc/dev') diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c index a38259d9950..edc396c0453 100644 --- a/sys/arch/socppc/dev/if_tsec.c +++ b/sys/arch/socppc/dev/if_tsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tsec.c,v 1.24 2009/08/13 10:03:35 jasper Exp $ */ +/* $OpenBSD: if_tsec.c,v 1.25 2009/08/27 20:41:35 miod Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -824,7 +824,7 @@ tsec_up(struct tsec_softc *sc) sc->sc_txdesc = TSEC_DMA_KVA(sc->sc_txring); sc->sc_txbuf = malloc(sizeof(struct tsec_buf) * TSEC_NTXDESC, - M_WAIT, M_DEVBUF); + M_DEVBUF, M_WAITOK); for (i = 0; i < TSEC_NTXDESC; i++) { txb = &sc->sc_txbuf[i]; bus_dmamap_create(sc->sc_dmat, MCLBYTES, TSEC_NTXSEGS, @@ -850,7 +850,7 @@ tsec_up(struct tsec_softc *sc) sc->sc_rxdesc = TSEC_DMA_KVA(sc->sc_rxring); sc->sc_rxbuf = malloc(sizeof(struct tsec_buf) * TSEC_NRXDESC, - M_WAIT, M_DEVBUF); + M_DEVBUF, M_WAITOK); for (i = 0; i < TSEC_NRXDESC; i++) { rxb = &sc->sc_rxbuf[i]; -- cgit v1.2.3