diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-15 06:36:37 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-15 06:36:37 +0000 |
commit | e846c180b936d9db2b10f1aa0807201de01f2106 (patch) | |
tree | fac576be30be49f16ef59b8e4f01b614167b3293 /MdeModulePkg/Universal/ReportStatusCodeRouter/Pei | |
parent | 2002bf5dd56927cbacbc748120bc6f6f2e3fe12c (diff) | |
download | edk2-e846c180b936d9db2b10f1aa0807201de01f2106.zip edk2-e846c180b936d9db2b10f1aa0807201de01f2106.tar.gz edk2-e846c180b936d9db2b10f1aa0807201de01f2106.tar.bz2 |
The handler dispatcher in PEI statuscode router driver should check if handler is NULL, if it is not NULL, then handler can be called.
Signed-off-by: li-elvin
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12699 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/ReportStatusCodeRouter/Pei')
-rw-r--r-- | MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.c b/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.c index e3ae334..8a2dc8a 100644 --- a/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.c +++ b/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.c @@ -249,6 +249,7 @@ ReportDispatcher ( NumberOfEntries = GET_GUID_HOB_DATA (Hob);
CallbackEntry = (EFI_PEI_RSC_HANDLER_CALLBACK *) (NumberOfEntries + 1);
for (Index = 0; Index < *NumberOfEntries; Index++) {
+ if (CallbackEntry[Index] != NULL) {
CallbackEntry[Index](
PeiServices,
CodeType,
@@ -257,6 +258,7 @@ ReportDispatcher ( CallerId,
Data
);
+ }
}
Hob.Raw = GET_NEXT_HOB (Hob);
Hob.Raw = GetNextGuidHob (&gStatusCodeCallbackGuid, Hob.Raw);
|