Add more code robustness check for modules under MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10108 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1016,7 +1016,7 @@ CoreFwVolEventProtocolNotify (
|
||||
FvIsBeingProcesssed (FvHandle);
|
||||
|
||||
Status = CoreHandleProtocol (FvHandle, &gEfiFirmwareVolume2ProtocolGuid, (VOID **)&Fv);
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (EFI_ERROR (Status) || Fv == NULL) {
|
||||
//
|
||||
// FvHandle must have Firmware Volume2 protocol thus we should never get here.
|
||||
//
|
||||
|
Reference in New Issue
Block a user