From 1edc4c46b896ac39289ed85566c32f4535d2f757 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sun, 1 Jun 2003 22:09:12 +0000 Subject: Change a : bzero(ptr, sizeof(DC_RXLEN * 5)); which should obviously be: bzero(ptr, DC_RXLEN * 5); Looks like this bug may have reduced the effectiveness of the workaround for the hardware bug in the PNIC chips. MFC after: 1 week --- sys/dev/dc/if_dc.c | 2 +- sys/pci/if_dc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 874cac76d56e..21bead27c524 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -2431,7 +2431,7 @@ dc_pnic_rx_bug_war(struct dc_softc *sc, int idx) i = sc->dc_pnic_rx_bug_save; cur_rx = &sc->dc_ldata->dc_rx_list[idx]; ptr = sc->dc_pnic_rx_buf; - bzero(ptr, sizeof(DC_RXLEN * 5)); + bzero(ptr, DC_RXLEN * 5); /* Copy all the bytes from the bogus buffers. */ while (1) { diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 874cac76d56e..21bead27c524 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -2431,7 +2431,7 @@ dc_pnic_rx_bug_war(struct dc_softc *sc, int idx) i = sc->dc_pnic_rx_bug_save; cur_rx = &sc->dc_ldata->dc_rx_list[idx]; ptr = sc->dc_pnic_rx_buf; - bzero(ptr, sizeof(DC_RXLEN * 5)); + bzero(ptr, DC_RXLEN * 5); /* Copy all the bytes from the bogus buffers. */ while (1) { -- cgit v1.3