diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-05 14:26:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-06 08:03:58 +0200 |
commit | 48898b3a5d27a73a65f2b7520ceb53005d45c984 (patch) | |
tree | 8ff29d751f12f1b4de4c7f256d8846bc3db7b957 /cpukit/rtems | |
parent | rtems: rtems_scheduler_ident_by_processor_set() (diff) | |
download | rtems-48898b3a5d27a73a65f2b7520ceb53005d45c984.tar.bz2 |
rtems: rtems_scheduler_get_processor_set() status
In case the processor set is not large enough to contain the processor
set owned by the scheduler return RTEMS_INVALID_SIZE instead of
RTEMS_INVALID_NUMBER. This is more in line with other directives since
the issue is related to the size of an object.
Close #4401.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/schedulergetprocessorset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/schedulergetprocessorset.c b/cpukit/rtems/src/schedulergetprocessorset.c index 6027ab31a2..71a351528a 100644 --- a/cpukit/rtems/src/schedulergetprocessorset.c +++ b/cpukit/rtems/src/schedulergetprocessorset.c @@ -50,7 +50,7 @@ rtems_status_code rtems_scheduler_get_processor_set( processor_set = _Scheduler_Get_processors( scheduler ); status = _Processor_mask_To_cpu_set_t( processor_set, cpusetsize, cpuset ); if ( status != PROCESSOR_MASK_COPY_LOSSLESS ) { - return RTEMS_INVALID_NUMBER; + return RTEMS_INVALID_SIZE; } return RTEMS_SUCCESSFUL; |