From e473f3c12e217088f0237e0336cf4319cff54702 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Jun 2014 14:30:47 +0200 Subject: score: Fix MrsP root node update Set the new root after the resource tree update. --- cpukit/score/include/rtems/score/mrspimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h index 083f42853e..2369d9de83 100644 --- a/cpukit/score/include/rtems/score/mrspimpl.h +++ b/cpukit/score/include/rtems/score/mrspimpl.h @@ -325,9 +325,9 @@ RTEMS_INLINE_ROUTINE MRSP_Status _MRSP_Release( _Resource_Node_extract( new_owner ); _Resource_Node_set_dependency( new_owner, NULL ); - _MRSP_Set_root( new_owner, new_owner ); _Resource_Node_add_resource( new_owner, &mrsp->Resource ); _Resource_Set_owner( &mrsp->Resource, new_owner ); + _MRSP_Set_root( new_owner, new_owner ); _MRSP_Add_state( rival, MRSP_RIVAL_STATE_NEW_OWNER ); } -- cgit v1.2.3