mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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.
|
// EFI_ALREADY_STARTED is not an error for bus driver.
|
||||||
// Return the corresponding protocol interface.
|
// Return the corresponding protocol interface.
|
||||||
//
|
//
|
||||||
|
ASSERT (Prot != NULL);
|
||||||
*Interface = Prot->Interface;
|
*Interface = Prot->Interface;
|
||||||
} else if (Status == EFI_UNSUPPORTED) {
|
} else if (Status == EFI_UNSUPPORTED) {
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user