NULL out p_stats when detaching the underlying thread stack, since the
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 5 Sep 2004 21:25:53 +0000 (21:25 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 5 Sep 2004 21:25:53 +0000 (21:25 +0000)
commit8bacbd6a260dbbb5873e197416235e1bb4822451
tree2178049e193d8e4790411cfb726ffa1b9b63c00e
parent0abf15afeed378d38f331837f2fcde7051888541
NULL out p_stats when detaching the underlying thread stack, since the
pointer will no longer be valid.  This should solve occassional panics
that occur when procfs tries to read an invalid p_stats.

Crash-Reported-by: Rum <rumko@precious.networklinux.net>
sys/vm/vm_glue.c