FmpDevicePkg FmpDxe: Return UNSUPPORTED if device has been locked
authorStar Zeng <star.zeng@intel.com>
Sat, 28 Jul 2018 13:56:47 +0000 (21:56 +0800)
committerKinney, Michael D <michael.d.kinney@intel.com>
Thu, 2 Aug 2018 21:46:19 +0000 (14:46 -0700)
commita4c35479b79457f8419f0e83c4d60122269ffc64
treeef3e6bae2a431be8ab03e0da343bc4bbc0e440d9
parent0760f5fe96509ed8510cfe2ecab9305859e6f368
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>
FmpDevicePkg/FmpDxe/FmpDxe.c