]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/DxeCore: Add check to ensure no possible NULL ptr deref
authorHao Wu <hao.a.wu@intel.com>
Mon, 25 Sep 2017 01:46:31 +0000 (09:46 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 26 Sep 2017 01:38:46 +0000 (09:38 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/Dxe/Hand/Handle.c

index 3ed187b27949d3b5d79b28ad52050f73554e1e06..2db441725c41331323dc46aa20c3d8fd56462705 100644 (file)
@@ -1178,6 +1178,7 @@ Done:
       // EFI_ALREADY_STARTED is not an error for bus driver.\r
       // Return the corresponding protocol interface.\r
       //\r
+      ASSERT (Prot != NULL);\r
       *Interface = Prot->Interface;\r
     } else if (Status == EFI_UNSUPPORTED) {\r
       //\r