From owner-svn-src-all@FreeBSD.ORG Mon Jun 24 01:03:58 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A0B572D4; Mon, 24 Jun 2013 01:03:58 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 92B1D161D; Mon, 24 Jun 2013 01:03:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5O13wgI057401; Mon, 24 Jun 2013 01:03:58 GMT (envelope-from markj@svn.freebsd.org) Received: (from markj@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5O13wHE057400; Mon, 24 Jun 2013 01:03:58 GMT (envelope-from markj@svn.freebsd.org) Message-Id: <201306240103.r5O13wHE057400@svn.freebsd.org> From: Mark Johnston Date: Mon, 24 Jun 2013 01:03:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r252135 - stable/9/sys/dev/age X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jun 2013 01:03:58 -0000 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));