Subject: CVS commit: src/sys/miscfs/procfs
To: None <source-changes@NetBSD.org>
From: Antti Kantee <firstname.lastname@example.org>
Date: 02/16/2007 21:37:56
Module Name: src
Committed By: pooka
Date: Fri Feb 16 21:37:56 UTC 2007
In lookup, when checking for procfs process node validity, target the
process we're trying to get information about through procfs, not
the caller of lookup.
fixes 'ls -l /proc/*/file' panic, which would occur when trying to
lookup "file" for a kernel thread, which doesn't have p->p_textvp.
To generate a diff of this commit:
cvs rdiff -r1.147 -r1.148 src/sys/miscfs/procfs/procfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.