diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-28 08:18:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-28 10:32:36 +0200 |
commit | 70ddaa0e79ffb24e9f704b1302f10d987da29ce8 (patch) | |
tree | e4f1dff63fcca168b407cccd3808db3276a89a11 | |
parent | cpukit: Fix Makefile.am and update preinstall.am (diff) | |
download | rtems-70ddaa0e79ffb24e9f704b1302f10d987da29ce8.tar.bz2 |
rtems: Fix error return path
-rw-r--r-- | cpukit/rtems/src/semsetpriority.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |