summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-06-01 22:09:12 +0000
committermux <mux@FreeBSD.org>2003-06-01 22:09:12 +0000
commit9f4d72e270db95762cbf7a82c943096ebee282a2 (patch)
treee9801c9b3e09a6bd0a12f42c128dbf4bfa715237 /sys/pci/if_dc.c
parent40b4760123c2701e5434d07ed15ce01903c0ada9 (diff)
downloadFreeBSD-src-9f4d72e270db95762cbf7a82c943096ebee282a2.zip
FreeBSD-src-9f4d72e270db95762cbf7a82c943096ebee282a2.tar.gz
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
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 874cac7..21bead2 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) {
OpenPOWER on IntegriCloud