diff options
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/trap.c | 3 | ||||
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 067eb3a..e43e9cc 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -269,6 +269,9 @@ trap(struct trapframe *frame) userret(td, frame, sticks); mtx_assert(&Giant, MA_NOTOWNED); +#ifdef DIAGNOSTIC + cred_free_thread(td); +#endif /* DIAGNOSTIC */ } static void diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 067eb3a..e43e9cc 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -269,6 +269,9 @@ trap(struct trapframe *frame) userret(td, frame, sticks); mtx_assert(&Giant, MA_NOTOWNED); +#ifdef DIAGNOSTIC + cred_free_thread(td); +#endif /* DIAGNOSTIC */ } static void |