Check NULL thread mailbox pointer.

This commit is contained in:
David Xu 2002-10-30 05:09:29 +00:00
parent 75c3973ab8
commit 8db2431f61
2 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,8 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap)
struct proc *p;
struct thread *td2;
if (uap->tmbx == NULL)
return (EINVAL);
p = td->td_proc;
mtx_lock_spin(&sched_lock);
FOREACH_THREAD_IN_PROC(p, td2) {

View File

@ -273,6 +273,8 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap)
struct proc *p;
struct thread *td2;
if (uap->tmbx == NULL)
return (EINVAL);
p = td->td_proc;
mtx_lock_spin(&sched_lock);
FOREACH_THREAD_IN_PROC(p, td2) {