summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-05-20 07:38:43 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-05-20 07:38:43 -0600
commite8c368058ebc1bbe757e2d1dfe31caf1764854f2 (patch)
tree5ad1d86fe78172609760524ceb01f41081d95825
parentfa2541d0007cccfd0f083ab7d3e29658938a37a4 (diff)
downloadnuttx-e8c368058ebc1bbe757e2d1dfe31caf1764854f2.tar.gz
nuttx-e8c368058ebc1bbe757e2d1dfe31caf1764854f2.tar.bz2
nuttx-e8c368058ebc1bbe757e2d1dfe31caf1764854f2.zip
sig_mqnotempty(): Test for a valid signal number inverted. From eero.nurkkala
-rw-r--r--nuttx/ChangeLog3
-rw-r--r--nuttx/sched/sig_mqnotempty.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index fc8659cf6..932972cf5 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/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/nuttx/sched/sig_mqnotempty.c b/nuttx/sched/sig_mqnotempty.c
index 54ea2f9aa..9bdfa9f14 100644
--- a/nuttx/sched/sig_mqnotempty.c
+++ b/nuttx/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;
}