summaryrefslogtreecommitdiffstats
path: root/FmpDevicePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-07-28 21:56:47 +0800
committerKinney, Michael D <michael.d.kinney@intel.com>2018-08-02 14:46:19 -0700
commita4c35479b79457f8419f0e83c4d60122269ffc64 (patch)
treeef3e6bae2a431be8ab03e0da343bc4bbc0e440d9 /FmpDevicePkg
parent0760f5fe96509ed8510cfe2ecab9305859e6f368 (diff)
downloadedk2-a4c35479b79457f8419f0e83c4d60122269ffc64.tar.gz
edk2-a4c35479b79457f8419f0e83c4d60122269ffc64.tar.bz2
edk2-a4c35479b79457f8419f0e83c4d60122269ffc64.zip
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>
Diffstat (limited to 'FmpDevicePkg')
-rw-r--r--FmpDevicePkg/FmpDxe/FmpDxe.c2
1 files changed, 1 insertions, 1 deletions
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;
}