#417 closed defect (fixed)

core semaphore semaphore has bad check for maximum

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: score Version: 4.6
Severity: major Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

rtems-ss-20030128/cpukit/score/src/coresemsurrender.c:65:

if ( the_semaphore->count <= the_semaphore->Attributes.maximum_count )

the_semaphore->count += 1;

It seems that there should be '<' instead of '<=' in comparison, otherwise
semaphore 'count' could exceed 'Attributes.maximum_count', right?

Release:
RTEMS-4.6 brancha nd mainline

Environment:
all

Change History (1)

comment:1 Changed on Jul 7, 2003 at 5:03:19 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patch applied.

Note: See TracTickets for help on using tickets.