summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulergetaffinity.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-26 11:00:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-27 19:40:12 +0200
commit4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7 (patch)
tree64814323130a90a2ae790a5a787d8bd8989648e9 /cpukit/score/src/schedulergetaffinity.c
parentSimplify get affinitiy directives (diff)
downloadrtems-4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7.tar.bz2
rtems: Change rtems_task_get_affinity() status
In case the processor set is not large enough to contain the processor affinity set of the task 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 #4393.
Diffstat (limited to 'cpukit/score/src/schedulergetaffinity.c')
-rw-r--r--cpukit/score/src/schedulergetaffinity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulergetaffinity.c b/cpukit/score/src/schedulergetaffinity.c
index 09eaa187dd..84e404e8df 100644
--- a/cpukit/score/src/schedulergetaffinity.c
+++ b/cpukit/score/src/schedulergetaffinity.c
@@ -51,7 +51,7 @@ Status_Control _Scheduler_Get_affinity(
_Scheduler_Release_critical( scheduler, &lock_context );
if ( status != PROCESSOR_MASK_COPY_LOSSLESS ) {
- return STATUS_INVALID_NUMBER;
+ return STATUS_INVALID_SIZE;
}
return STATUS_SUCCESSFUL;