Don't make the ktrace hook in tsleep() deref a null curproc after a panic.

PR:		15169
Submitted by:	David Gilbert <dgilbert@velocet.ca>
This commit is contained in:
peter 1999-11-30 09:01:46 +00:00
parent 3e251f317b
commit 031f01d30f

View File

@ -378,7 +378,7 @@ tsleep(ident, priority, wmesg, timo)
struct callout_handle thandle;
#ifdef KTRACE
if (KTRPOINT(p, KTR_CSW))
if (p && KTRPOINT(p, KTR_CSW))
ktrcsw(p->p_tracep, 1, 0);
#endif
s = splhigh();