[rtems commit] rtems: rtems_scheduler_ident_by_processor_set()
Sebastian Huber
sebh at rtems.org
Thu May 6 13:14:56 UTC 2021
Module: rtems
Branch: master
Commit: 3f0c0bfe9a27d643985e2e614a5d956d9e9b041e
Changeset: http://git.rtems.org/rtems/commit/?id=3f0c0bfe9a27d643985e2e614a5d956d9e9b041e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 5 13:26:44 2021 +0200
rtems: rtems_scheduler_ident_by_processor_set()
Check for a NULL processor set pointer.
---
cpukit/rtems/src/scheduleridentbyprocessorset.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cpukit/rtems/src/scheduleridentbyprocessorset.c b/cpukit/rtems/src/scheduleridentbyprocessorset.c
index 3d48bfb..8d55d47 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;
More information about the vc
mailing list