DragonFly BSD
DragonFly kernel List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: kernel: mfree: m->m_nextpkt != NULL


From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 15:04:50 +0200

-On [20050920 14:05], Dave Hayes (dave@xxxxxxxxxxx) wrote:
>I look forward to your modification. Thanks in advance.

Demizu-san's modification as patch:

save attachment to $HOME
cd /usr/src
patch -p0 < $HOME/sys-netinet-ip_input.c.diff

and rebuild/reinstall kernel.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://www.andf.info/
http://www.tendra.org/   | http://www.in-nomine.org/
The Wheels of Life, they turn, ..., without me...
Index: sys/netinet/ip_input.c
===================================================================
RCS file: /home/ncvs/DragonFly/src/sys/netinet/ip_input.c,v
retrieving revision 1.58
diff -u -r1.58 ip_input.c
--- sys/netinet/ip_input.c	31 Aug 2005 22:21:23 -0000	1.58
+++ sys/netinet/ip_input.c	20 Sep 2005 12:59:37 -0000
@@ -1368,6 +1368,7 @@
 	while (fp->ipq_frags) {
 		q = fp->ipq_frags;
 		fp->ipq_frags = q->m_nextpkt;
+		q->m_nextpkt = NULL;
 		m_freem(q);
 	}
 	remque(fp);


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]