mirror of https://github.com/acidanthera/audk.git
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:
parent
0760f5fe96
commit
a4c35479b7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue