summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2020-07-16 00:52:34 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2020-07-16 00:52:34 +0000
commit55719bce3b13e5f411e738756576acaeeafa7fef (patch)
treea403762880e52b4e66ee4049b941ec0817cc359e
parente78a2776a9bc871165e090fd4ed7d06545f3f00d (diff)
Initialize sis_ring_init() 'sis_rx_prod' and 'sis_rx_cons' to 0.
ok mpi@, deraadt@
-rw-r--r--sys/dev/pci/if_sis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c
index 61133b09308..0a5bf238870 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.137 2020/07/10 13:26:38 patrick Exp $ */
+/* $OpenBSD: if_sis.c,v 1.138 2020/07/16 00:52:33 kevlo Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -1285,7 +1285,7 @@ sis_ring_init(struct sis_softc *sc)
ld->sis_rx_list[i].sis_ctl = 0;
}
- cd->sis_rx_prod = cd->sis_rx_cons;
+ cd->sis_rx_prod = cd->sis_rx_cons = 0;
if_rxr_init(&cd->sis_rx_ring, 2, SIS_RX_LIST_CNT - 1);
sis_fill_rx_ring(sc);