summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-06-15 19:35:30 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-06-15 19:35:30 +0000
commit5f7d986a37b161156b9a5bab682a65b94660b725 (patch)
tree8fe0b76dcc55e9f922c078e82e67c2438886e5a9 /sys/dev/ic
parent3b075e9043becc98cc8ca200bc3bb30dd0646252 (diff)
Check the correct variable when freeing the RX/TX lists.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/xl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 596d3b6128d..ba326723c69 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.38 2002/06/15 05:14:41 aaron Exp $ */
+/* $OpenBSD: xl.c,v 1.39 2002/06/15 19:35:29 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2470,7 +2470,7 @@ xl_freetxrx(sc)
* Free data in the RX lists.
*/
for (i = 0; i < XL_RX_LIST_CNT; i++) {
- if (sc->xl_cdata.xl_rx_chain[i].map->dm_segs != 0) {
+ if (sc->xl_cdata.xl_rx_chain[i].map->dm_nsegs != 0) {
bus_dmamap_t map = sc->xl_cdata.xl_rx_chain[i].map;
bus_dmamap_sync(sc->sc_dmat, map, 0, map->dm_mapsize,
@@ -2488,7 +2488,7 @@ xl_freetxrx(sc)
* Free the TX list buffers.
*/
for (i = 0; i < XL_TX_LIST_CNT; i++) {
- if (sc->xl_cdata.xl_tx_chain[i].map->dm_segs != 0) {
+ if (sc->xl_cdata.xl_tx_chain[i].map->dm_nsegs != 0) {
bus_dmamap_t map = sc->xl_cdata.xl_tx_chain[i].map;
bus_dmamap_sync(sc->sc_dmat, map, 0, map->dm_mapsize,