From c49339560967ecc59664aa3328a9747989edfee9 Mon Sep 17 00:00:00 2001 From: Noritoshi Demizu Date: Thu, 22 Sep 2005 06:45:01 +0000 Subject: [PATCH] Suppress kernel message "mfree: m->m_nextpkt != NULL", which is printed by m_free() in kern/uipc_mbuf.c. Reported-by: Dave Hayes --- sys/netinet/ip_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 1b65567f67..553fc668a3 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -82,7 +82,7 @@ * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 * $FreeBSD: src/sys/netinet/ip_input.c,v 1.130.2.52 2003/03/07 07:01:28 silby Exp $ - * $DragonFly: src/sys/netinet/ip_input.c,v 1.58 2005/08/31 22:21:23 hsu Exp $ + * $DragonFly: src/sys/netinet/ip_input.c,v 1.59 2005/09/22 06:45:01 demizu Exp $ */ #define _IP_VHL @@ -1233,6 +1233,7 @@ ip_reass(struct mbuf *m, struct ipq *fp, struct ipq *where, m->m_nextpkt = nq; ipstat.ips_fragdropped++; fp->ipq_nfrags--; + q->m_nextpkt = NULL; m_freem(q); } @@ -1368,6 +1369,7 @@ ip_freef(struct ipq *fp) while (fp->ipq_frags) { q = fp->ipq_frags; fp->ipq_frags = q->m_nextpkt; + q->m_nextpkt = NULL; m_freem(q); } remque(fp); -- 2.41.0