diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-01-25 04:48:41 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-01-25 04:48:41 +0000 |
commit | 0cc565deac6206d0e27c8b539501682d1d48acfe (patch) | |
tree | 7d95eae26c51302e72d92941b36f06f58a647d5d /SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c | |
parent | b422b62c01a490e7892864c04280d430a2566e3f (diff) | |
download | edk2-platforms-0cc565deac6206d0e27c8b539501682d1d48acfe.tar.xz |
Add NULL pointer check.
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14084 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c index c70b467ff9..123ce6f8f0 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c @@ -1763,6 +1763,7 @@ UpdateVariable ( );
if (!EFI_ERROR (Status)) {
if (!Variable->Volatile) {
+ ASSERT (CacheVariable->InDeletedTransitionPtr != NULL);
CacheVariable->InDeletedTransitionPtr->State = State;
}
} else {
@@ -2185,6 +2186,7 @@ UpdateVariable ( );
if (!EFI_ERROR (Status)) {
if (!Variable->Volatile) {
+ ASSERT (CacheVariable->InDeletedTransitionPtr != NULL);
CacheVariable->InDeletedTransitionPtr->State = State;
}
} else {
|