sm8450-common: gpt-utils: Check ufs device first before checking partition names

Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
此提交包含在:
Luofan Chen
2023-05-24 23:56:36 +08:00
提交者 Arian
父節點 fefc40993e
當前提交 3e2b958b27

查看文件

@@ -241,9 +241,9 @@ static int gpt_boot_chain_swap(const uint8_t *pentries_start,
uint8_t ptn_swap[PTN_ENTRY_SIZE]; uint8_t ptn_swap[PTN_ENTRY_SIZE];
//Skip the xbl, multiimgoem, multiimgqti partitions on UFS devices. That is handled //Skip the xbl, multiimgoem, multiimgqti partitions on UFS devices. That is handled
//seperately. //seperately.
if (gpt_utils_is_ufs_device() && !strncmp(ptn_swap_list[i],PTN_XBL,strlen(PTN_XBL)) if (gpt_utils_is_ufs_device() && (!strncmp(ptn_swap_list[i],PTN_XBL,strlen(PTN_XBL))
|| !strncmp(ptn_swap_list[i],PTN_MULTIIMGOEM,strlen(PTN_MULTIIMGOEM)) || !strncmp(ptn_swap_list[i],PTN_MULTIIMGOEM,strlen(PTN_MULTIIMGOEM))
|| !strncmp(ptn_swap_list[i],PTN_MULTIIMGQTI,strlen(PTN_MULTIIMGQTI))) || !strncmp(ptn_swap_list[i],PTN_MULTIIMGQTI,strlen(PTN_MULTIIMGQTI))))
continue; continue;
ptn_entry = gpt_pentry_seek(ptn_swap_list[i], pentries_start, ptn_entry = gpt_pentry_seek(ptn_swap_list[i], pentries_start,