From: Star Zeng Date: Wed, 25 Jul 2018 10:22:54 +0000 (+0800) Subject: FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100) X-Git-Tag: edk2-stable201903~1284 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c6c18d879e3ddb833c45b4be49fac3e8970a04d2;hp=4da45e2027fd97bc74b1028efac296372708c0b0 FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100) Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- 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; }