diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-07-21 13:07:00 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-25 11:05:45 +0800 |
commit | 2e8b25f857bb2a1b2e16f9d488f3ddf216d79c3b (patch) | |
tree | 4dbf29487b9161436fe74c9cce84d151102dc9a3 | |
parent | 57b143d234f473e590fdad32ce0003f326fe329a (diff) | |
download | edk2-2e8b25f857bb2a1b2e16f9d488f3ddf216d79c3b.tar.gz edk2-2e8b25f857bb2a1b2e16f9d488f3ddf216d79c3b.tar.bz2 edk2-2e8b25f857bb2a1b2e16f9d488f3ddf216d79c3b.zip |
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>
(cherry picked from commit cb9f3a59c390c94d5fb252c7f9b44571db90adf2)
-rw-r--r-- | ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c index 1173f8d7be..04f6a58c3d 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c @@ -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;
|