Skip to content

Commit 8f614dd

Browse files
gabor-toth-armadeaarm
authored andcommitted
RSE: common: Add missing variable
Added missing definitions for the atu variables and ensured they are used consistently when checking results. Change-Id: I8ef82c482200cfdfe6aff39be3aaf7acc26e629d Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
1 parent 18a1701 commit 8f614dd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

platform/ext/target/arm/rse/common/fip_parser/host_flash_atu.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ int host_flash_atu_get_gpt_partition_offset_by_image_uuid(uuid_t image_uuid,
454454
size_t atu_slot_size;
455455
enum atu_error_t atu_err;
456456
gpt_entry_t entry;
457+
enum atu_error_t atu_err;
457458

458459
if (image_found == NULL || image_offset == NULL || image_size == NULL) {
459460
return -1;
@@ -485,9 +486,9 @@ int host_flash_atu_get_gpt_partition_offset_by_image_uuid(uuid_t image_uuid,
485486
*image_found = false;
486487
}
487488

488-
atu_err = atu_rse_free_addr(&ATU_LIB_S, HOST_FLASH0_TEMP_BASE_S);
489-
if (rc != ATU_ERR_NONE) {
490-
return rc;
489+
atu_err = atu_rse_free_addr(&ATU_DEV_S, HOST_FLASH0_TEMP_BASE_S);
490+
if (atu_err != ATU_ERR_NONE) {
491+
return atu_err;
491492
}
492493

493494
return 0;
@@ -506,6 +507,7 @@ int host_flash_atu_get_gpt_partition_offset_by_type_uuid(uuid_t type_uuid,
506507
size_t atu_slot_size;
507508
gpt_entry_t entries[2];
508509
uint8_t idx;
510+
enum atu_error_t atu_err;
509511

510512
if (image_found == NULL || image_offset == NULL || image_size == NULL) {
511513
return -1;
@@ -543,9 +545,9 @@ int host_flash_atu_get_gpt_partition_offset_by_type_uuid(uuid_t type_uuid,
543545
}
544546
}
545547

546-
rc = atu_rse_free_addr(&ATU_LIB_S, HOST_FLASH0_TEMP_BASE_S);
547-
if (rc != ATU_ERR_NONE) {
548-
return rc;
548+
atu_err = atu_rse_free_addr(&ATU_DEV_S, HOST_FLASH0_TEMP_BASE_S);
549+
if (atu_err != ATU_ERR_NONE) {
550+
return atu_err;
549551
}
550552

551553
return 0;

0 commit comments

Comments
 (0)