[rtems commit] score: use reference with strict mutex

Gedare Bloom gedare at rtems.org
Sat May 18 18:37:03 UTC 2013


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

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Sat May 18 14:38:02 2013 -0400

score: use reference with strict mutex

---

 cpukit/score/src/coremutexsurrender.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c
index 86ac501..a30bbb7 100644
--- a/cpukit/score/src/coremutexsurrender.c
+++ b/cpukit/score/src/coremutexsurrender.c
@@ -47,7 +47,7 @@
      *  Check whether the holder release the mutex in LIFO order if not return
      *  error code.
      */
-    if ( _Chain_First( holder->lock_mutex ) != &mutex->queue.lock_queue ) {
+    if ( _Chain_First( &holder->lock_mutex ) != &mutex->queue.lock_queue ) {
       mutex->nest_count++;
 
       return CORE_MUTEX_RELEASE_NOT_ORDER;




More information about the vc mailing list