Date: Thu, 2 Jul 2009 15:49:28 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195289 - projects/mesh11s/sys/net80211 Message-ID: <200907021549.n62FnS7Q048411@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sam Date: Thu Jul 2 15:49:28 2009 New Revision: 195289 URL: http://svn.freebsd.org/changeset/base/195289 Log: fix assert (age can be zero for 2nd and later packets) Modified: projects/mesh11s/sys/net80211/ieee80211_ageq.c Modified: projects/mesh11s/sys/net80211/ieee80211_ageq.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_ageq.c Thu Jul 2 14:57:40 2009 (r195288) +++ projects/mesh11s/sys/net80211/ieee80211_ageq.c Thu Jul 2 15:49:28 2009 (r195289) @@ -91,7 +91,7 @@ ieee80211_ageq_append(struct ieee80211_a aq->aq_tail->m_nextpkt = m; age -= M_AGE_GET(aq->aq_head); } - KASSERT(age > 0, ("age %d", age)); + KASSERT(age >= 0, ("age %d", age)); M_AGE_SET(m, age); m->m_nextpkt = NULL; aq->aq_tail = m;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907021549.n62FnS7Q048411>