Fixed bug where unspecified base requests couldn't return a resource value of zero
authorJustin Sobota <jsobota@ti.com>
Mon, 13 May 2013 21:44:49 +0000 (17:44 -0400)
committerJustin Sobota <jsobota@ti.com>
Mon, 13 May 2013 21:44:49 +0000 (17:44 -0400)
src/rm_policy.c

index 0a6a71145de45eb50a35c1c6e88a4dfe88081439..68d63931b1e4e7553f54c6d87695a48deaaffa89 100644 (file)
@@ -714,7 +714,7 @@ uint32_t rmPolicyGetResourceBase(void *policyDtb, Rm_PolicyValidInstNode *validI
         }
         policyFreeAssignmentPermissions(permissionStart);
 
         }
         policyFreeAssignmentPermissions(permissionStart);
 
-        if (resourceBase) {
+        if (resourceBase != RM_RESOURCE_BASE_UNSPECIFIED) {
             break;
         }
         else {
             break;
         }
         else {