summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r--sys/kern/kern_switch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 6ccc916..e8a802f 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -659,13 +659,10 @@ thread_sanity_check(struct thread *td)
kg = td->td_ksegrp;
ke = td->td_kse;
- if (kg != &p->p_ksegrp) {
- panic ("wrong ksegrp");
- }
if (ke) {
- if (ke != &p->p_kse) {
- panic("wrong kse");
+ if (p != ke->ke_proc) {
+ panic("wrong proc");
}
if (ke->ke_thread != td) {
panic("wrong thread");
OpenPOWER on IntegriCloud