X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Vlv2TbltDevicePkg%2FFeature%2FCapsule%2FLibrary%2FPlatformFlashAccessLib%2FPlatformFlashAccessLib.c;h=079c3ef2d68e975227bc472c03acc7c8b77cce2d;hb=3eac7496bef1636b3745ff015581012534a47721;hp=052ccb891c0d7e3abd41f0fb86165f8cb44fc174;hpb=9dc8036ddf6f8e9af166595d5eb5f5ea9b6d9dcc;p=mirror_edk2.git
diff --git a/Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c b/Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c
index 052ccb891c..079c3ef2d6 100644
--- a/Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c
+++ b/Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c
@@ -1,7 +1,7 @@
/** @file
Platform Flash Access library.
- Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -529,6 +529,10 @@ Done:
Progress (EndPercentage);
}
+ if (FlashError) {
+ return EFI_WRITE_PROTECTED;
+ }
+
return EFI_SUCCESS;
}