summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2002-10-31 08:00:51 +0000
committerdavidxu <davidxu@FreeBSD.org>2002-10-31 08:00:51 +0000
commit4eeb3d0411bde9c630938a08f32a18792c8785d2 (patch)
treef14b542750714021825c5d53cc64f29986ad64e9 /sys/kern/kern_kse.c
parent5dbff154c833a0b9d122eeae77d39c72fcc3b02a (diff)
downloadFreeBSD-src-4eeb3d0411bde9c630938a08f32a18792c8785d2.zip
FreeBSD-src-4eeb3d0411bde9c630938a08f32a18792c8785d2.tar.gz
KSE-enabled processes only.
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r--sys/kern/kern_kse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index f70dec5..078a6e9 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -273,9 +273,12 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap)
struct proc *p;
struct thread *td2;
+ p = td->td_proc;
+ /* KSE-enabled processes only, please. */
+ if (!(p->p_flag & P_KSES))
+ return (EINVAL);
if (uap->tmbx == NULL)
return (EINVAL);
- p = td->td_proc;
mtx_lock_spin(&sched_lock);
FOREACH_THREAD_IN_PROC(p, td2) {
if (td2->td_mailbox == uap->tmbx) {
OpenPOWER on IntegriCloud