mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
b422b62c01
commit
0cc565deac
|
@ -1496,6 +1496,7 @@ UpdateVariable (
|
|||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!Variable->Volatile) {
|
||||
ASSERT (CacheVariable->InDeletedTransitionPtr != NULL);
|
||||
CacheVariable->InDeletedTransitionPtr->State = State;
|
||||
}
|
||||
} else {
|
||||
|
@ -1824,6 +1825,7 @@ UpdateVariable (
|
|||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!Variable->Volatile) {
|
||||
ASSERT (CacheVariable->InDeletedTransitionPtr != NULL);
|
||||
CacheVariable->InDeletedTransitionPtr->State = State;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue