diff options
author | yongari <yongari@FreeBSD.org> | 2010-09-03 18:00:17 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-09-03 18:00:17 +0000 |
commit | da8f4a1650c2d6e42ae9918c0225e7274e7a1789 (patch) | |
tree | c8f7c175430af6d5670b1608da50e57f4c29713b /sys/dev/sis | |
parent | 62a144da376afc6f1b34d649cbc9fae2304df613 (diff) | |
download | FreeBSD-src-da8f4a1650c2d6e42ae9918c0225e7274e7a1789.zip FreeBSD-src-da8f4a1650c2d6e42ae9918c0225e7274e7a1789.tar.gz |
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.
Diffstat (limited to 'sys/dev/sis')
-rw-r--r-- | sys/dev/sis/if_sis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index ef95b08..33eb920 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); } |