svn commit: r252135 - stable/9/sys/dev/age

Mark Johnston markj at FreeBSD.org
Mon Jun 24 01:03:58 UTC 2013


Author: markj
Date: Mon Jun 24 01:03:58 2013
New Revision: 252135
URL: http://svnweb.freebsd.org/changeset/base/252135

Log:
  MFC r251872:
  Be sure to actually decrement the "count" parameter for each processed
  descriptor so that we return when the threshold has been reached.

Modified:
  stable/9/sys/dev/age/if_age.c

Modified: stable/9/sys/dev/age/if_age.c
==============================================================================
--- stable/9/sys/dev/age/if_age.c	Mon Jun 24 00:26:56 2013	(r252134)
+++ stable/9/sys/dev/age/if_age.c	Mon Jun 24 01:03:58 2013	(r252135)
@@ -2478,7 +2478,7 @@ age_rxintr(struct age_softc *sc, int rr_
 	    sc->age_cdata.age_rx_ring_map, BUS_DMASYNC_POSTWRITE);
 
 	for (prog = 0; rr_cons != rr_prod; prog++) {
-		if (count <= 0)
+		if (count-- <= 0)
 			break;
 		rxrd = &sc->age_rdata.age_rr_ring[rr_cons];
 		nsegs = AGE_RX_NSEGS(le32toh(rxrd->index));


More information about the svn-src-stable-9 mailing list