mirror of https://github.com/acidanthera/audk.git
ShellPkg/DrvDiag: Fix a critical typo bug
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
db98a8bdb8
commit
cb9f3a59c3
ShellPkg/Library/UefiShellDriver1CommandsLib
|
@ -123,7 +123,7 @@ DoDiagnostics (
|
|||
|
||||
if (ChildHandle != NULL) {
|
||||
ChildHandleList = AllocateZeroPool(2*sizeof(EFI_HANDLE));
|
||||
if (ChildHandleList != NULL) {
|
||||
if (ChildHandleList == NULL) {
|
||||
SHELL_FREE_NON_NULL (ControllerHandleList);
|
||||
SHELL_FREE_NON_NULL (DriverHandleList);
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
|
Loading…
Reference in New Issue