From e7502187c2b1d9c5a1732c48c8d9f45a1c3473c4 Mon Sep 17 00:00:00 2001 From: Jared McNeill Date: Fri, 29 Apr 2016 21:46:43 +0000 Subject: [PATCH] Set txbuf_map array size to TX_DESC_COUNT instead of RX_DESC_COUNT. --- sys/dev/dwc/if_dwcvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/dwc/if_dwcvar.h b/sys/dev/dwc/if_dwcvar.h index 3dd6a8dda2b5..d9198bda4415 100644 --- a/sys/dev/dwc/if_dwcvar.h +++ b/sys/dev/dwc/if_dwcvar.h @@ -90,7 +90,7 @@ struct dwc_softc { struct dwc_hwdesc *txdesc_ring; bus_addr_t txdesc_ring_paddr; bus_dma_tag_t txbuf_tag; - struct dwc_bufmap txbuf_map[RX_DESC_COUNT]; + struct dwc_bufmap txbuf_map[TX_DESC_COUNT]; uint32_t tx_idx_head; uint32_t tx_idx_tail; int txcount;