From: Star Zeng Date: Sat, 28 Jul 2018 13:56:47 +0000 (+0800) Subject: FmpDevicePkg FmpDxe: Return UNSUPPORTED if device has been locked X-Git-Tag: edk2-stable201903~1276 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=a4c35479b79457f8419f0e83c4d60122269ffc64;ds=sidebyside FmpDevicePkg FmpDxe: Return UNSUPPORTED if device has been locked Instead of EFI_ACCESS_DENIED which is not defined in retval by UEFI spec, return UNSUPPORTED if device has been locked in SetTheImage(). 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 fb02e34f70..b25a1511c7 100644 --- a/FmpDevicePkg/FmpDxe/FmpDxe.c +++ b/FmpDevicePkg/FmpDxe/FmpDxe.c @@ -928,7 +928,7 @@ SetTheImage ( // if (mFmpDeviceLocked) { DEBUG ((DEBUG_ERROR, "FmpDxe: SetTheImage() - Device is already locked. Can't update.\n")); - Status = EFI_ACCESS_DENIED; + Status = EFI_UNSUPPORTED; goto cleanup; }