[rtems commit] rtems: Fix error return path
Sebastian Huber
sebh at rtems.org
Tue Mar 28 08:34:10 UTC 2017
Module: rtems
Branch: master
Commit: 70ddaa0e79ffb24e9f704b1302f10d987da29ce8
Changeset: http://git.rtems.org/rtems/commit/?id=70ddaa0e79ffb24e9f704b1302f10d987da29ce8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Mar 28 08:18:06 2017 +0200
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 123f627..d67e816 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;
}
More information about the vc
mailing list