diff options
author | 2010-11-07 18:00:42 +0000 | |
---|---|---|
committer | 2010-11-07 18:00:42 +0000 | |
commit | 2f9e70a30bb166fb60e6b16a4e422ce22856a5fb (patch) | |
tree | fbadff543538f87adfe8151a1045eff9e8ba5112 | |
parent | regen (diff) | |
download | wireguard-openbsd-2f9e70a30bb166fb60e6b16a4e422ce22856a5fb.tar.xz wireguard-openbsd-2f9e70a30bb166fb60e6b16a4e422ce22856a5fb.zip |
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, |