Skip to content

Commit 7df799a

Browse files
kahjingl90Alif Zakuan Yuslaimi
authored andcommitted
arch: arm: rsu-spl: Compare FACTORY IMAGE with current running SPL slot
Commit a5091a7: Bug Fix: Compare FACTORY IMAGE with current running SPL image slot instead of current SSBL slot. Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
1 parent fdf916b commit 7df799a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/mach-socfpga/rsu_spl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ static int get_ssbl_slot(struct socfpga_rsu_s10_spt_slot *rsu_ssbl_slot)
141141
/* compare SPL's spt name after the prefix */
142142
if (!strncmp(result, rsu_spt.spt_slot[crt_spt_index].name,
143143
MAX_PART_NAME_LENGTH - strlen(SSBL_PART_PREFIX)) ||
144-
!strncmp(result, FACTORY_IMG_NAME, strlen(FACTORY_IMG_NAME))) {
144+
!strncmp(result, rsu_spt.spt_slot[crt_spt_index].name,
145+
strlen(FACTORY_IMG_NAME))) {
145146
printf("RSU: found SSBL partition %s at address 0x%08x.\n",
146147
result, (int)rsu_spt.spt_slot[i].offset[0]);
147148
memcpy(rsu_ssbl_slot, &rsu_spt.spt_slot[i],

0 commit comments

Comments
 (0)