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 <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>
This commit is contained in:
Star Zeng 2018-07-28 21:56:47 +08:00 committed by Kinney, Michael D
parent 0760f5fe96
commit a4c35479b7
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ SetTheImage (
// //
if (mFmpDeviceLocked) { if (mFmpDeviceLocked) {
DEBUG ((DEBUG_ERROR, "FmpDxe: SetTheImage() - Device is already locked. Can't update.\n")); DEBUG ((DEBUG_ERROR, "FmpDxe: SetTheImage() - Device is already locked. Can't update.\n"));
Status = EFI_ACCESS_DENIED; Status = EFI_UNSUPPORTED;
goto cleanup; goto cleanup;
} }