summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-05 13:26:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-06 07:23:11 +0200
commit3f0c0bfe9a27d643985e2e614a5d956d9e9b041e (patch)
tree0e808a0196e77f1f2cd31d956e21448a3c5099eb
parente5590a3ea1da6bc3e57651b51b8c356d881a60bd (diff)
downloadrtems-3f0c0bfe9a27d643985e2e614a5d956d9e9b041e.tar.bz2
rtems: rtems_scheduler_ident_by_processor_set()
Check for a NULL processor set pointer.
-rw-r--r--cpukit/rtems/src/scheduleridentbyprocessorset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/rtems/src/scheduleridentbyprocessorset.c b/cpukit/rtems/src/scheduleridentbyprocessorset.c
index 3d48bfba3e..8d55d470f5 100644
--- a/cpukit/rtems/src/scheduleridentbyprocessorset.c
+++ b/cpukit/rtems/src/scheduleridentbyprocessorset.c
@@ -44,6 +44,10 @@ rtems_status_code rtems_scheduler_ident_by_processor_set(
return RTEMS_INVALID_ADDRESS;
}
+ if ( cpuset == NULL ) {
+ return RTEMS_INVALID_ADDRESS;
+ }
+
status = _Processor_mask_From_cpu_set_t( &set, cpusetsize, cpuset );
if ( status == PROCESSOR_MASK_COPY_INVALID_SIZE ) {
return RTEMS_INVALID_SIZE;