From f2248e8df63696954a4984fa5fa4d64a135f6de9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 12 May 2003 09:09:56 -0700 Subject: [PATCH] hrtimers: fix timer_create(2) && SIGEV_NONE From: george anzinger - Fix the sig_notify filtering code for the timer_create system call to properly check for the signal number being small enought, but only if SIG_NONE is not specified. - Eliminate useless test of sig_notify. --- kernel/posix-timers.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index bca12ba294e4..25757200b34d 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -357,13 +357,10 @@ static inline struct task_struct * good_sigevent(sigevent_t * event) rtn->tgid != current->tgid)) return NULL; - if ((event->sigev_notify & SIGEV_SIGNAL & MIPS_SIGEV) && + if ((event->sigev_notify & ~SIGEV_NONE & MIPS_SIGEV) && ((unsigned) (event->sigev_signo > SIGRTMAX))) return NULL; - if (event->sigev_notify & ~(SIGEV_SIGNAL | SIGEV_THREAD_ID)) - return NULL; - return rtn; } -- cgit v1.2.3