summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ageq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ageq.c b/sys/net80211/ieee80211_ageq.c
index b7aad74..21745c8 100644
--- a/sys/net80211/ieee80211_ageq.c
+++ b/sys/net80211/ieee80211_ageq.c
@@ -211,7 +211,6 @@ ieee80211_ageq_remove(struct ieee80211_ageq *aq,
/*
* Remove from forward list; tail pointer is harder.
*/
- *prev = m->m_nextpkt;
if (aq->aq_tail == m) {
KASSERT(m->m_nextpkt == NULL, ("not last"));
if (aq->aq_head == m) { /* list empty */
@@ -223,6 +222,8 @@ ieee80211_ageq_remove(struct ieee80211_ageq *aq,
offsetof(struct mbuf, m_nextpkt));
}
}
+ *prev = m->m_nextpkt;
+
/* add to private list for return */
*phead = m;
phead = &m->m_nextpkt;
OpenPOWER on IntegriCloud