mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
pthread_mutexattr_setprioceiling: valid priority ceiling check looked at
value in attribute structure instead of passed in priority
This commit is contained in:
@@ -551,7 +551,7 @@ int pthread_mutexattr_setprioceiling(
|
||||
if ( !attr || !attr->is_initialized )
|
||||
return EINVAL;
|
||||
|
||||
if ( !_POSIX_Priority_Is_valid( attr->prio_ceiling ) )
|
||||
if ( !_POSIX_Priority_Is_valid( prio_ceiling ) )
|
||||
return EINVAL;
|
||||
|
||||
attr->prio_ceiling = prioceiling;
|
||||
|
||||
Reference in New Issue
Block a user