MdeModulePkg/DxeCore: Add check to ensure no possible NULL ptr deref

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>
This commit is contained in:
Hao Wu 2017-09-25 09:46:31 +08:00
parent baaa3cee1e
commit 8932679df5
1 changed files with 1 additions and 0 deletions

View File

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