mirror of https://github.com/acidanthera/audk.git
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:
parent
baaa3cee1e
commit
8932679df5
|
@ -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) {
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue