diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-11-22 10:38:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-11-22 10:38:49 +0000 |
commit | 34aef7e8096a30a6eb558e3c7b5d409c049d3648 (patch) | |
tree | 76b5076ce7b1b97c43ea25bf0d66348b28630286 /sys | |
parent | 92a1d5104cb8d3a6f95e979a8ef2e22c921c2119 (diff) |
off by one for sis_tx_cnt, can lead to corrupt sis_tx_list; ok fgs@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_sis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 3bc090dcac8..18a9f72419a 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.29 2002/11/20 15:19:33 fgsch Exp $ */ +/* $OpenBSD: if_sis.c,v 1.30 2002/11/22 10:38:48 markus Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1366,7 +1366,7 @@ int sis_encap(sc, m_head, txidx) sc->sis_ldata->sis_tx_list[cur].sis_mbuf = m_head; sc->sis_ldata->sis_tx_list[cur].sis_ctl &= ~SIS_CMDSTS_MORE; sc->sis_ldata->sis_tx_list[*txidx].sis_ctl |= SIS_CMDSTS_OWN; - sc->sis_cdata.sis_tx_cnt += i - 1; + sc->sis_cdata.sis_tx_cnt += i; *txidx = frag; bus_dmamap_sync(sc->sc_dmat, sc->sc_listmap, |