mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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
@ -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…
x
Reference in New Issue
Block a user