diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-30 08:41:57 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-30 08:41:57 +0000 |
commit | 10c9a2e3f658058c7c79b85d3a9f2f76bf4c0fca (patch) | |
tree | 76893c42143d14ee38bf9a9cfc266ca8104d81c1 /IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c | |
parent | bc369e79758f08661d031514657a1036ffd052a9 (diff) | |
download | edk2-platforms-10c9a2e3f658058c7c79b85d3a9f2f76bf4c0fca.tar.xz |
Add NULL pointer checking against Data.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10725 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c index 24afa1f2d2..943c4eba04 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c @@ -126,7 +126,8 @@ SerialStatusCodeReportWorker ( Value,
Instance
);
- } else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
+ } else if (Data != NULL &&
+ CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {
//
// EFI_STATUS_CODE_STRING_DATA
|