Be sure to reset p->p_md.md_fpstate to NULL after freeing it in cpu_exit().
authormiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:12:58 +0000 (21:12 +0000)
committermiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:12:58 +0000 (21:12 +0000)
commit76ad31e1c8bf3b6adcb1fb69cc925e586f8f89ff
tree10d71a45e705bbfcf2dd9c832006c7c2194842eb
parentc44cb43b7119087eac7c1327e25696e286bb7458
Be sure to reset p->p_md.md_fpstate to NULL after freeing it in cpu_exit().
There should hopefully be no further faults on this proc causing an fpu
state to be handled, but better play safe than sorry.

ok claudio@ kettenis@
sys/arch/sparc64/sparc64/vm_machdep.c