summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-08-12 02:21:44 +0000
committeradrian <adrian@FreeBSD.org>2013-08-12 02:21:44 +0000
commitfea1a66936c450cdf352c0690dde9fd5cee11636 (patch)
tree5dc907ae5b2446ba72847b8cb7e8e6736e53704b /sys/net80211
parente6cb6b38c2b6978f72d6b9754f39edbdd9923cf8 (diff)
downloadFreeBSD-src-fea1a66936c450cdf352c0690dde9fd5cee11636.zip
FreeBSD-src-fea1a66936c450cdf352c0690dde9fd5cee11636.tar.gz
When flushing packets from the powersave queue, make sure that
m_nextpkt is NULL before passing it up to the parent transmit method.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_power.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_power.c b/sys/net80211/ieee80211_power.c
index d14d8f4..c05c1be 100644
--- a/sys/net80211/ieee80211_power.c
+++ b/sys/net80211/ieee80211_power.c
@@ -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",
OpenPOWER on IntegriCloud