sig_mqnotempty(): Test for a valid signal number inverted. From eero.nurkkala

This commit is contained in:
Gregory Nutt 2014-05-20 07:38:43 -06:00
parent 1b39aff8b4
commit 44a3397283
2 changed files with 4 additions and 1 deletions

View File

@ -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).

View File

@ -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;
}