From 443f331ec52d2293f3f9226bf034341a44c5df5a Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Fri, 3 Sep 2010 18:00:17 +0000 Subject: [PATCH] Fix another bug introduced in r212109. We should unload DMA maps only after sending the last fragment of a frame so the mbuf pointer also should be stored in the last descriptor index. --- sys/dev/sis/if_sis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index ef95b0863d0..33eb9205d8f 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -1940,7 +1940,7 @@ sis_encap(struct sis_softc *sc, struct mbuf **m_head) map = txd->tx_dmamap; txd->tx_dmamap = sc->sis_txdesc[prod].tx_dmamap; sc->sis_txdesc[prod].tx_dmamap = map; - txd->tx_m = *m_head; + sc->sis_txdesc[prod].tx_m = *m_head; return (0); }