forked from Imagelibrary/rtems
score: Critical fix for timer server
Under certain conditions it is possible that a call to _Watchdog_Adjust_to_chain() happens with a unit parameter value of zero (for example sptests/spintrcritical17). Remove superfluous checks that prevent an adjust to a chain of a watchdog chain which first element has a delta zero value.
This commit is contained in:
@@ -33,16 +33,9 @@ void _Watchdog_Adjust_to_chain(
|
|||||||
ISR_Level level;
|
ISR_Level level;
|
||||||
Watchdog_Control *first;
|
Watchdog_Control *first;
|
||||||
|
|
||||||
if ( units <= 0 ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
|
|
||||||
while ( 1 ) {
|
while ( 1 ) {
|
||||||
if ( units <= 0 ) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ( _Chain_Is_empty( header ) ) {
|
if ( _Chain_Is_empty( header ) ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user