From d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Fri, 26 Feb 2010 08:53:27 +0000 Subject: 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 --- MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Core/Dxe/Dispatcher') diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index 3a4d03bd55..212eed9e92 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -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. // -- cgit v1.2.3