summaryrefslogtreecommitdiffstats
path: root/FmpDevicePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-07-25 18:22:54 +0800
committerKinney, Michael D <michael.d.kinney@intel.com>2018-08-02 14:46:18 -0700
commitc6c18d879e3ddb833c45b4be49fac3e8970a04d2 (patch)
treec789d17747f0d8dc582d2d53cb0154ab450c98bc /FmpDevicePkg
parent4da45e2027fd97bc74b1028efac296372708c0b0 (diff)
downloadedk2-c6c18d879e3ddb833c45b4be49fac3e8970a04d2.tar.gz
edk2-c6c18d879e3ddb833c45b4be49fac3e8970a04d2.tar.bz2
edk2-c6c18d879e3ddb833c45b4be49fac3e8970a04d2.zip
FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)
Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'FmpDevicePkg')
-rw-r--r--FmpDevicePkg/FmpDxe/FmpDxe.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c
index 091f950b95..f0e8b0da82 100644
--- a/FmpDevicePkg/FmpDxe/FmpDxe.c
+++ b/FmpDevicePkg/FmpDxe/FmpDxe.c
@@ -1121,10 +1121,12 @@ cleanup:
mProgressSupported = FALSE;
SetLastAttemptStatusInVariable (LastAttemptStatus);
- //
- // Set progress to 100 after everything is done including recording Status.
- //
- Progress (100);
+ if (Progress != NULL) {
+ //
+ // Set progress to 100 after everything is done including recording Status.
+ //
+ Progress (100);
+ }
return Status;
}