summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 291c862..4574aad 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -133,6 +133,8 @@ userret(td, frame, oticks)
* Let the scheduler adjust our priority etc.
*/
sched_userret(td);
+ KASSERT(td->td_locks == 0,
+ ("userret: Returning with %d locks held.", td->td_locks));
}
/*
OpenPOWER on IntegriCloud