svn commit: r193573 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb/sys
Kip Macy
kmacy at FreeBSD.org
Sat Jun 6 07:29:19 UTC 2009
Author: kmacy
Date: Sat Jun 6 07:29:19 2009
New Revision: 193573
URL: http://svn.freebsd.org/changeset/base/193573
Log:
sanity check mbufs on free
Modified:
user/kmacy/releng_7_2_fcs/sys/dev/cxgb/sys/mvec.h
Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/sys/mvec.h
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/sys/mvec.h Sat Jun 6 07:19:49 2009 (r193572)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/sys/mvec.h Sat Jun 6 07:29:19 2009 (r193573)
@@ -67,8 +67,16 @@ static __inline void
m_freem_list(struct mbuf *m)
{
struct mbuf *n;
+#ifdef INVARIANTS
+ int i = 0;
+#endif
while (m != NULL) {
+#ifdef INVARIANTS
+ if (m == (struct mbuf *)0xDEADBEEF)
+ panic("freed mbuf %d in mbuf list", i);
+ i++;
+#endif
n = m->m_nextpkt;
if (n != NULL)
prefetch(n);
More information about the svn-src-user
mailing list