diff options
author | mini <mini@FreeBSD.org> | 2002-07-13 04:36:50 +0000 |
---|---|---|
committer | mini <mini@FreeBSD.org> | 2002-07-13 04:36:50 +0000 |
commit | a02f691cf327e818bceba1863bc2a55251aa737f (patch) | |
tree | 6c52f43001bde6767e8144b44c0ec175c0a053c6 /sys/sparc64 | |
parent | 41fc8114c091411a45564a858af8e7b3cc3af5b7 (diff) | |
download | FreeBSD-src-a02f691cf327e818bceba1863bc2a55251aa737f.zip FreeBSD-src-a02f691cf327e818bceba1863bc2a55251aa737f.tar.gz |
Add additional cred_free_thread() calls that I had missed the first time.
Pointed out by: jhb
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/trap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index 66fb141..0ab35af 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -392,6 +392,9 @@ trapsig: user: userret(td, tf, sticks); mtx_assert(&Giant, MA_NOTOWNED); +#ifdef DIAGNOSTIC + cred_free_thread(td); +#endif out: CTR1(KTR_TRAP, "trap: td=%p return", td); return; @@ -680,6 +683,9 @@ syscall(struct trapframe *tf) */ STOPEVENT(p, S_SCX, code); +#ifdef DIAGNOSTIC + cred_free_thread(td); +#endif #ifdef WITNESS if (witness_list(td)) { panic("system call %s returning with mutex(s) held\n", |