diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-07-07 18:03:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-07-07 18:03:05 +0000 |
commit | 75063f00bc3632aab5424fafcd9b573d4a90c049 (patch) | |
tree | 7e4a8d4aeaf0c4d9fd1e28ff08f93d287ec5f9c9 /cpukit/score | |
parent | 2003-07-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-75063f00bc3632aab5424fafcd9b573d4a90c049.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')
-rw-r--r-- | cpukit/score/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/src/coresemsurrender.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog index 3568d0945b..295d722ca6 100644 --- a/cpukit/score/ChangeLog +++ b/cpukit/score/ChangeLog @@ -1,3 +1,9 @@ +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>. + 2003-06-13 Joel Sherrill <joel@OARcorp.com> * src/threadloadenv.c: Removed warnings. 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; |