cvs commit: src/sys/kern kern_proc.c
Juli Mallett
jmallett at FreeBSD.org
Tue Jan 17 12:25:02 PST 2006
jmallett 2006-01-17 20:25:01 UTC
FreeBSD src repository
Modified files:
sys/kern kern_proc.c
Log:
Since p_cansee will end up dereferencing p_ucred, don't check for p_ucred
equal to NULL several times later. p_ucred "should probably not" be NULL
if the process isn't PRS_NEW anyway. This is strongly reinforced by the fact
that we don't see frequent crashes here. Remove the checks after p_cansee and
add a KASSERT right before it.
Found by: Coverity Prevent (tm)
Also trim one nearby trailing space.
Revision Changes Path
1.237 +7 -9 src/sys/kern/kern_proc.c
More information about the cvs-all
mailing list