Subject: Re: kern/35728: repeated kernel panics: free: duplicated free (NFS-related)
To: None <gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 02/20/2007 10:19:05
On Feb 20,  7:30am, arto@selonen.org (arto@selonen.org) wrote:
-- Subject: kern/35728: repeated kernel panics: free: duplicated free (NFS-re


Try this:

Index: nfs_serv.c
===================================================================
RCS file: /cvsroot/src/sys/nfs/nfs_serv.c,v
retrieving revision 1.123
diff -u -u -r1.123 nfs_serv.c
--- nfs_serv.c	4 Feb 2007 14:48:51 -0000	1.123
+++ nfs_serv.c	20 Feb 2007 15:18:32 -0000
@@ -2706,6 +2706,7 @@
 		toff = off;
 		siz = fullsiz;
 		free(cookies, M_TEMP);
+		cookies = NULL;
 		goto again;
 	}
 

christos