Author: adrian
Date: Mon Aug 12 02:21:44 2013
New Revision: 254236
URL: http://svnweb.freebsd.org/changeset/base/254236

Log:
  When flushing packets from the powersave queue, make sure that
  m_nextpkt is NULL before passing it up to the parent transmit
  method.

Modified:
  head/sys/net80211/ieee80211_power.c

Modified: head/sys/net80211/ieee80211_power.c
==============================================================================
--- head/sys/net80211/ieee80211_power.c Mon Aug 12 01:21:14 2013        
(r254235)
+++ head/sys/net80211/ieee80211_power.c Mon Aug 12 02:21:44 2013        
(r254236)
@@ -456,6 +456,7 @@ pwrsave_flushq(struct ieee80211_node *ni
                while (parent_q != NULL) {
                        m = parent_q;
                        parent_q = m->m_nextpkt;
+                       m->m_nextpkt = NULL;
                        /* must be encapsulated */
                        KASSERT((m->m_flags & M_ENCAP),
                            ("%s: parentq with non-M_ENCAP frame!\n",
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to