cvs commit: src/sys/kern vfs_lookup.c
Bruce Evans
bde at zeta.org.au
Sat Mar 31 20:48:43 UTC 2007
On Sat, 31 Mar 2007, Robert Watson wrote:
> rwatson 2007-03-31 16:08:50 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/kern vfs_lookup.c
> Log:
> Rather than ignoring any error return from getnewvnode() in nameiinit(),
> explicitly test and panic. This should not ever happen, but if it does,
> this is a preferred failure mode to a NULL pointer dereference in kernel.
No, a null pointer dereference is far preferable since it takes less code
and is easier to debug.
Bruce
More information about the cvs-src
mailing list