svn commit: r195523 - projects/mesh11s/sys/net80211

Sam Leffler sam at FreeBSD.org
Fri Jul 10 00:40:18 UTC 2009


Author: sam
Date: Fri Jul 10 00:40:15 2009
New Revision: 195523
URL: http://svn.freebsd.org/changeset/base/195523

Log:
  correctly set the tailq ptr when removing the last item in the q

Modified:
  projects/mesh11s/sys/net80211/ieee80211_ageq.c

Modified: projects/mesh11s/sys/net80211/ieee80211_ageq.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_ageq.c	Fri Jul 10 00:04:51 2009	(r195522)
+++ projects/mesh11s/sys/net80211/ieee80211_ageq.c	Fri Jul 10 00:40:15 2009	(r195523)
@@ -211,7 +211,6 @@ ieee80211_ageq_remove(struct ieee80211_a
 		/*
 		 * 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_a
 				    offsetof(struct mbuf, m_nextpkt));
 			}
 		}
+		*prev = m->m_nextpkt;
+
 		/* add to private list for return */
 		*phead = m;
 		phead = &m->m_nextpkt;


More information about the svn-src-projects mailing list