diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-11-07 18:00:43 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-11-07 18:00:43 +0000 |
commit | fa5017f23ab9956383b45cec8444f49b5ea0c92d (patch) | |
tree | 9c72d27a90a51843d2a0ce12256dc21cfc4eedc1 | |
parent | 2e7dc62171319417c174fdd205623084356c5085 (diff) |
fix a test in ar5008_rx_free()
-rw-r--r-- | sys/dev/ic/ar5008.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c index d5706bd45c2..40fa9d8476b 100644 --- a/sys/dev/ic/ar5008.c +++ b/sys/dev/ic/ar5008.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5008.c,v 1.13 2010/09/03 15:40:08 damien Exp $ */ +/* $OpenBSD: ar5008.c,v 1.14 2010/11/07 18:00:42 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -631,7 +631,7 @@ ar5008_rx_free(struct athn_softc *sc) free(rxq->bf, M_DEVBUF); /* Free Rx descriptors. */ - if (rxq->descs != NULL) { + if (rxq->map != NULL) { if (rxq->descs != NULL) { bus_dmamap_unload(sc->sc_dmat, rxq->map); bus_dmamem_unmap(sc->sc_dmat, (caddr_t)rxq->descs, |