summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukesh Ojha <mojha@codeaurora.org>2021-08-26 22:18:54 +0530
committerMukesh Ojha <mojha@codeaurora.org>2021-08-27 12:34:59 +0530
commit20513fdfd88c30963e0f399ec37264a3075ad09a (patch)
treed0e8a82e260ac214edbbbab3bb752c581cff038a
parent5c8e3c08d7002ef74d18a3ad42334b7a79c8b152 (diff)
QcomModulePkg: Fix android slotsuffix
Android slotsuffix is not being added to bootconfig if vb command line is NULL. Fix this by adding a boot config check for slotsuffix before adding android slot suffix to bootconfig. Change-Id: I3cf335fb945346b55183426b16f88d62d2c6351b
-rw-r--r--QcomModulePkg/Library/BootLib/UpdateCmdLine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/QcomModulePkg/Library/BootLib/UpdateCmdLine.c b/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
index 11cad3ae82..f9fbb9ab40 100644
--- a/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
+++ b/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
@@ -584,6 +584,9 @@ UpdateCmdLineParams (UpdateCmdLineParamList *Param,
Src = Param->SlotSuffixAscii;
AsciiStrCatS (Dst, MaxCmdLineLen, Src);
} else {
+ BootConfigFlag = IsAndroidBootParam (Param->AndroidSlotSuffix,
+ AsciiStrLen (Param->AndroidSlotSuffix),
+ Param->HeaderVersion);
AddtoBootConfigList (BootConfigFlag, Param->AndroidSlotSuffix,
Param->SlotSuffixAscii,
BootConfigListHead,