Changeset 57c676c6 in rtems for cpukit/rtems


Ignore:
Timestamp:
Jun 16, 2016, 8:44:00 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4b3251a
Parents:
661e0e63
Message:

rtems: Fix rtems_semaphore_create()

Destroy the thread queue in case of a priority ceiling violation,
otherwise the SMP profiling data gets corrupted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/semcreate.c

    r661e0e63 r57c676c6  
    174174          &queue_context
    175175        );
     176
     177        if ( status != STATUS_SUCCESSFUL ) {
     178          _Thread_queue_Destroy( &the_semaphore->Core_control.Wait_queue );
     179        }
    176180      } else {
    177181        status = STATUS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.