Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2018 13:32:02 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337571 - head/sys/net80211
Message-ID:  <201808101332.w7ADW2Z6081556@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Fri Aug 10 13:32:02 2018
New Revision: 337571
URL: https://svnweb.freebsd.org/changeset/base/337571

Log:
  net80211: Drain ageq before cleaning it up.
  
  The comment above ieee80211_ageq_cleanup specifically notes that the queue
  is assumed to be empty, and in order to make it so, ieee80211_ageq_drain
  must be used.
  
  Submitted by:	Augustin Cavalier <waddlesplash@gmail.com>
  Obtained from:	Haiku (dffc3e235360cd7b71261239ee8507b7d62a1471)
  MFC after:	1 week

Modified:
  head/sys/net80211/ieee80211_node.c

Modified: head/sys/net80211/ieee80211_node.c
==============================================================================
--- head/sys/net80211/ieee80211_node.c	Fri Aug 10 13:06:14 2018	(r337570)
+++ head/sys/net80211/ieee80211_node.c	Fri Aug 10 13:32:02 2018	(r337571)
@@ -137,6 +137,7 @@ ieee80211_node_detach(struct ieee80211com *ic)
 
 	callout_drain(&ic->ic_inact);
 	ieee80211_node_table_cleanup(&ic->ic_sta);
+	ieee80211_ageq_drain(&ic->ic_stageq);
 	ieee80211_ageq_cleanup(&ic->ic_stageq);
 }
 



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