Skip to content

Commit

Permalink
MdeModulePkg/HiiDatabaseDxe: Remove buffer check for string default.
Browse files Browse the repository at this point in the history
Remove efivarstore IFR buffer check when string load default.
In the case of varstore type IFR, it will be NULL.

Signed-off-by: Longhao Lee <[email protected]>
  • Loading branch information
poloaegis83 committed Feb 14, 2025
1 parent bc664d1 commit 40bba2c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
Original file line number Diff line number Diff line change
Expand Up @@ -3030,11 +3030,6 @@ ParseIfrData (
goto Done;
}

if (IfrEfiVarStoreTmp == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto Done;
}

FindQuestionDefaultSetting (DefaultData.DefaultId, IfrEfiVarStoreTmp, &(IfrString->Question), (VOID *)StringData, VarWidth, QuestionReferBitField);
if ((DefaultData.Value.string != 0) && (StringData != NULL)) {
DefaultData.Value.string = InternalHiiSetString (HiiHandle, 0, StringData, NULL);
Expand Down

0 comments on commit 40bba2c

Please sign in to comment.