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:
parent
3e251f317b
commit
031f01d30f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user