When flushing packets from the powersave queue, make sure that

m_nextpkt is NULL before passing it up to the parent transmit
method.
This commit is contained in:
Adrian Chadd 2013-08-12 02:21:44 +00:00
parent d52d5066e7
commit 4bd57e1078

View File

@ -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",