Subject: CVS commit: src/sys/miscfs/procfs
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 02/04/2003 00:27:43
Module Name:	src
Committed By:	jdolecek
Date:		Mon Feb  3 22:27:43 UTC 2003

Modified Files:
	src/sys/miscfs/procfs: procfs_subr.c

Log Message:
procfs_allocvp():
  * do not set *vpp unless successful, otherwise we'd trigger
    DIAGNOSTIC panic in lookup(9) on error return
  * on error, make sure to free malloc'ed memory and ungetnewvnode() the
    previously acquired vnode

this fixes panic on 'tail -f <file> &; ls -l /proc/$!/fd' reported by
Andrew Brown

fix reviewed by Christos Zoulas


To generate a diff of this commit:
cvs rdiff -r1.43 -r1.44 src/sys/miscfs/procfs/procfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.