Skip to content

Commit

Permalink
ShellPkg: DXE_ASSERT when issuing drvcfg command in UEFI Shell
Browse files Browse the repository at this point in the history
REF: tianocore#10626

Issue command drvcfg directly, system halt

Signed-off-by: Zhu, Cliff <[email protected]>
Cc: Liming Gao <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
zhurui22 committed Jan 23, 2025
1 parent a36fb60 commit 4df1616
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1370,12 +1370,6 @@ ShellCommandRunDrvCfg (
FileName = NULL;
}

if (FileName == NULL) {
ASSERT (FileName != NULL);
ShellStatus = SHELL_INVALID_PARAMETER;
goto Done;
}

if (InFromFile && EFI_ERROR (ShellFileExists (FileName))) {
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellDriver1HiiHandle, L"drvcfg", FileName);
ShellStatus = SHELL_INVALID_PARAMETER;
Expand Down

0 comments on commit 4df1616

Please sign in to comment.