From 70ddaa0e79ffb24e9f704b1302f10d987da29ce8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 28 Mar 2017 08:18:06 +0200 Subject: rtems: Fix error return path --- cpukit/rtems/src/semsetpriority.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/rtems/src/semsetpriority.c b/cpukit/rtems/src/semsetpriority.c index 123f6277af..d67e816f5d 100644 --- a/cpukit/rtems/src/semsetpriority.c +++ b/cpukit/rtems/src/semsetpriority.c @@ -50,6 +50,7 @@ static rtems_status_code _Semaphore_Set_priority( core_priority = _RTEMS_Priority_To_core( scheduler, new_priority, &valid ); if ( new_priority != RTEMS_CURRENT_PRIORITY && !valid ) { + _ISR_lock_ISR_enable( &queue_context->Lock_context.Lock_context ); return RTEMS_INVALID_PRIORITY; } -- cgit v1.2.3