Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2017 02:07:44 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r323205 - stable/11/sys/mips/atheros
Message-ID:  <201709060207.v8627iGH084590@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: emaste
Date: Wed Sep  6 02:07:44 2017
New Revision: 323205
URL: https://svnweb.freebsd.org/changeset/base/323205

Log:
  MFC r323022: arge: correct bzero sizeof (pointed-to object, not pointer)
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/mips/atheros/if_arge.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/mips/atheros/if_arge.c
==============================================================================
--- stable/11/sys/mips/atheros/if_arge.c	Wed Sep  6 02:06:51 2017	(r323204)
+++ stable/11/sys/mips/atheros/if_arge.c	Wed Sep  6 02:07:44 2017	(r323205)
@@ -2130,7 +2130,7 @@ arge_tx_ring_init(struct arge_softc *sc)
 	sc->arge_cdata.arge_tx_cnt = 0;
 
 	rd = &sc->arge_rdata;
-	bzero(rd->arge_tx_ring, sizeof(rd->arge_tx_ring));
+	bzero(rd->arge_tx_ring, sizeof(*rd->arge_tx_ring));
 	for (i = 0; i < ARGE_TX_RING_COUNT; i++) {
 		if (i == ARGE_TX_RING_COUNT - 1)
 			addr = ARGE_TX_RING_ADDR(sc, 0);
@@ -2189,7 +2189,7 @@ arge_rx_ring_init(struct arge_softc *sc)
 	sc->arge_cdata.arge_rx_cons = 0;
 
 	rd = &sc->arge_rdata;
-	bzero(rd->arge_rx_ring, sizeof(rd->arge_rx_ring));
+	bzero(rd->arge_rx_ring, sizeof(*rd->arge_rx_ring));
 	for (i = 0; i < ARGE_RX_RING_COUNT; i++) {
 		rxd = &sc->arge_cdata.arge_rxdesc[i];
 		if (rxd->rx_m != NULL) {



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201709060207.v8627iGH084590>