diff options
author | Star Zeng <star.zeng@intel.com> | 2018-07-28 21:56:47 +0800 |
---|---|---|
committer | Kinney, Michael D <michael.d.kinney@intel.com> | 2018-08-02 14:46:19 -0700 |
commit | a4c35479b79457f8419f0e83c4d60122269ffc64 (patch) | |
tree | ef3e6bae2a431be8ab03e0da343bc4bbc0e440d9 | |
parent | 0760f5fe96509ed8510cfe2ecab9305859e6f368 (diff) | |
download | edk2-a4c35479b79457f8419f0e83c4d60122269ffc64.tar.gz |
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>
-rw-r--r-- | FmpDevicePkg/FmpDxe/FmpDxe.c | 2 |
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;
}
|