Integrated red-black tree algorithm for tree allocators
[keystone-rtos/rm-lld.git] / src / rm_services.c
index 46d07fffea9ece00937f4c5ac7047e171a1fa917..fbe8119cd12ffa87294f2cf7f7fd087d99615bf2 100644 (file)
@@ -112,7 +112,7 @@ void Rm_serviceHandler (void *rmHandle, Rm_ServiceReqInfo *serviceRequest,
              * via the provided callback function */
             serviceResponse->serviceId = transaction->localId;
         }
-        else if (serviceResponse->serviceState == RM_SERVICE_APPROVED)
+        else if (serviceResponse->serviceState == RM_SERVICE_APPROVED_AND_COMPLETED)
         {
             /* Service was approved and service was an allocate request the resource
              * data is passed back to the component */
@@ -155,7 +155,7 @@ void Rm_serviceResponder (Rm_Inst *rmInst, Rm_Transaction *transaction)
 
     /* Service was approved and service was an allocate request.  The resource
      * data is passed back to the component */
-    if ((serviceResponse.serviceState == RM_SERVICE_APPROVED) &&
+    if ((serviceResponse.serviceState == RM_SERVICE_APPROVED_AND_COMPLETED) &&
         ((transaction->type == Rm_service_RESOURCE_ALLOCATE) ||
          (transaction->type == Rm_service_RESOURCE_BLOCK_ALLOCATE) ||
          (transaction->type == Rm_service_RESOURCE_ALLOCATE_BY_NAME)))