Skip to content

Commit

Permalink
Fix #1469, f-sanitizer issue in coverage-shared-idma
Browse files Browse the repository at this point in the history
Fix #1469, fix sanitizer issue in coverage-shared-idma test
  • Loading branch information
Anh committed Jul 9, 2024
1 parent 269a522 commit 5e2d100
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ int32 OS_ObjectIdFindNextFree(OS_object_token_t *token)

base_id = OS_GetBaseForObjectType(token->obj_type);
max_id = OS_GetMaxForObjectType(token->obj_type);
objtype_state = &OS_objtype_state[token->obj_type];

if (max_id == 0)
{
Expand All @@ -610,8 +609,9 @@ int32 OS_ObjectIdFindNextFree(OS_object_token_t *token)
}
else
{
return_code = OS_ERR_NO_FREE_IDS;
serial = OS_ObjectIdToSerialNumber_Impl(objtype_state->last_id_issued);
return_code = OS_ERR_NO_FREE_IDS;
objtype_state = &OS_objtype_state[token->obj_type];
serial = OS_ObjectIdToSerialNumber_Impl(objtype_state->last_id_issued);
}

for (i = 0; i < max_id; ++i)
Expand Down

0 comments on commit 5e2d100

Please sign in to comment.