Subject: Re: kern/35524: panic from free in pathname_get
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Elad Efrat <elad@NetBSD.org>
List: netbsd-bugs
Date: 01/31/2007 06:45:04
The following reply was made to PR kern/35524; it has been noted by GNATS.
From: Elad Efrat <elad@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: Brian de Alwis <bsd@cs.ubc.ca>
Subject: Re: kern/35524: panic from free in pathname_get
Date: Wed, 31 Jan 2007 08:37:45 +0200
Brian de Alwis wrote:
> diff -w -b -u -r1.79 vfs_lookup.c
> --- sys/kern/vfs_lookup.c 7 Jan 2007 21:33:24 -0000 1.79
> +++ sys/kern/vfs_lookup.c 30 Jan 2007 20:39:18 -0000
> @@ -213,7 +213,8 @@
> NULL);
> if (error) {
> PNBUF_PUT((*path)->pathbuf);
> - free(path, M_TEMP);
> + free(*path, M_TEMP);
this is correct,
> + *path = NULL;
can you try reproducing without this line?
> return (error);
> }
> (*path)->needfree = TRUE;
-e.