rtems: rtems_scheduler_ident_by_processor_set()

Check for a NULL processor set pointer.
This commit is contained in:
Sebastian Huber
2021-05-05 13:26:44 +02:00
parent e5590a3ea1
commit 3f0c0bfe9a

View File

@@ -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;