- Update partition name match to use "uefi_" instead of "uefi". - Prevents incorrect matches with partitions like uefisecapps_a/b. - Ensures only uefi_a and uefi_b partitions are considered valid. - Fixes capsule update logic when identifying target partitions. - Avoids flashing to unintended secure apps partitions.
Signed-off-by: Balaji Selvanathan <balaji.selvanat...@oss.qualcomm.com> --- arch/arm/mach-snapdragon/capsule_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-snapdragon/capsule_update.c b/arch/arm/mach-snapdragon/capsule_update.c index 4dced4961b6..11ef4a0f4b9 100644 --- a/arch/arm/mach-snapdragon/capsule_update.c +++ b/arch/arm/mach-snapdragon/capsule_update.c @@ -136,7 +136,7 @@ static int find_target_partition(int *devnum, enum uclass_id *uclass, * flags might not be set so we assume the A partition unless the B * partition is active. */ - if (!strncmp(info.name, "uefi", strlen("uefi"))) { + if (!strncmp(info.name, "uefi_", strlen("uefi_"))) { /* * If U-Boot was chainloaded somehow we can't be flashed to * the uefi partition -- 2.34.1