From 44a3397283fa0b1b864da768c31d93a7162d76cd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 20 May 2014 07:38:43 -0600 Subject: [PATCH] sig_mqnotempty(): Test for a valid signal number inverted. From eero.nurkkala --- ChangeLog | 3 +++ sched/sig_mqnotempty.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fc8659cf6d..932972cf57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7340,4 +7340,7 @@ Simona (2014-5-14). * arch/arm/src/sam34/sam_gpio.c: Fix some SAM4E compiler errors when CONFIG_DEBUG_GPIO is enabled (2014-5-15). + * sched/sig_mqnotempty.c: Test for a valid signal number is inverted; this + function could not have been working correctly??? From eero.nurkkala + (2014-5-20). diff --git a/sched/sig_mqnotempty.c b/sched/sig_mqnotempty.c index 54ea2f9aa3..9bdfa9f146 100644 --- a/sched/sig_mqnotempty.c +++ b/sched/sig_mqnotempty.c @@ -103,7 +103,7 @@ int sig_mqnotempty(int pid, int signo, void *sival_ptr) /* Verify that we can perform the signalling operation */ - if (GOOD_SIGNO(signo)) + if (!GOOD_SIGNO(signo)) { return -EINVAL; }