[rtems commit] rtems: Fix semaphore MPCI support

Sebastian Huber sebh at rtems.org
Mon Nov 26 12:32:53 UTC 2018


Module:    rtems
Branch:    master
Commit:    637897894015da6f45e313ce81584e775a62e8d4
Changeset: http://git.rtems.org/rtems/commit/?id=637897894015da6f45e313ce81584e775a62e8d4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 26 10:14:00 2018 +0100

rtems: Fix semaphore MPCI support

---

 cpukit/rtems/src/semmp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index 2b14763..f6a5525 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -83,6 +83,10 @@ static rtems_status_code _Semaphore_MP_Send_request_packet(
   Semaphore_MP_Packet *the_packet;
   Status_Control       status;
 
+  if ( !_Semaphore_MP_Is_remote( semaphore_id ) ) {
+    return RTEMS_INVALID_ID;
+  }
+
   switch ( operation ) {
 
     case SEMAPHORE_MP_OBTAIN_REQUEST:



More information about the vc mailing list