summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coresemsurrender.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-07-07 18:02:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-07-07 18:02:43 +0000
commit0d469f0a29a573f5130dc1c71b60b9cdccb7271c (patch)
tree5757bf97f3ae573e5ce3cc75b9976dba23df4354 /cpukit/score/src/coresemsurrender.c
parent2003-07-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-0d469f0a29a573f5130dc1c71b60b9cdccb7271c.tar.bz2
2003-07-07 Joel Sherrill <joel@OARcorp.com>
PR 417/rtems * src/coresemsurrender.c: Correct incorrect check for maximum_count reported by Sergei Organov <osv@topconrd.ru>.
Diffstat (limited to 'cpukit/score/src/coresemsurrender.c')
-rw-r--r--cpukit/score/src/coresemsurrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/coresemsurrender.c b/cpukit/score/src/coresemsurrender.c
index 1a54a5c712..37d335746f 100644
--- a/cpukit/score/src/coresemsurrender.c
+++ b/cpukit/score/src/coresemsurrender.c
@@ -62,7 +62,7 @@ CORE_semaphore_Status _CORE_semaphore_Surrender(
} else {
_ISR_Disable( level );
- if ( the_semaphore->count <= the_semaphore->Attributes.maximum_count )
+ if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
the_semaphore->count += 1;
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;