Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2014 02:05:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264710 - head/sys/dev/ath
Message-ID:  <201404210205.s3L25p9U064240@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Apr 21 02:05:51 2014
New Revision: 264710
URL: http://svnweb.freebsd.org/changeset/base/264710

Log:
  Make sure bf_next is NULL'ed out when we're completing up an aggregate
  frame through the cleanup path.
  
  Whilst here, fix the indenting for something I messed up.
  
  Tested:
  
  * AR5416, STA mode

Modified:
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c	Mon Apr 21 02:04:37 2014	(r264709)
+++ head/sys/dev/ath/if_ath_tx.c	Mon Apr 21 02:05:51 2014	(r264710)
@@ -4600,10 +4600,11 @@ ath_tx_comp_cleanup_aggr(struct ath_soft
 
 	ATH_TX_UNLOCK(sc);
 
-	/* Handle frame completion */
+	/* Handle frame completion as individual frames */
 	bf = bf_first;
 	while (bf) {
 		bf_next = bf->bf_next;
+		bf->bf_next = NULL;
 		ath_tx_default_comp(sc, bf, 1);
 		bf = bf_next;
 	}
@@ -5849,7 +5850,7 @@ ath_tx_node_reassoc(struct ath_softc *sc
 		    ":",
 		    i);
 		/*
-	 * In case there's a followup call to this, only call it
+		 * In case there's a followup call to this, only call it
 		 * if we don't have a cleanup in progress.
 		 */
 		if (! tid->cleanup_inprogress) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404210205.s3L25p9U064240>