diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-27 20:41:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-27 20:41:36 +0000 |
commit | 3e171169b10e67ce701afa04c6dab43b70a30b31 (patch) | |
tree | 05c974b6ef0c3a6299af16f9963ef8f917b1472e /sys/arch | |
parent | b03cc25d94e491393c7b43f1e90a07ff337fab73 (diff) |
malloc() last two args were swapped, amazing things did not break; ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/socppc/dev/if_tsec.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]; |