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 <waddlespl...@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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to