From 768adcd9c1483203a089078767fb0ef1d0048c3d Mon Sep 17 00:00:00 2001 From: "INDIA\\sachinganesh" Date: Fri, 18 Oct 2024 01:57:50 +0530 Subject: [PATCH] FmpDevicePkg: Clarify return status of FMP Protocol GetImage() Clarifed the return status of EFI_FIRMWARE_MANAGEMENT_PROTOCOL.GetImage(). As intended in UEFI 2.10 Specification. Signed-off-by: Sachin Ganesh --- FmpDevicePkg/FmpDxe/FmpDxe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c index b04998ba04..ae37d3f8c4 100644 --- a/FmpDevicePkg/FmpDxe/FmpDxe.c +++ b/FmpDevicePkg/FmpDxe/FmpDxe.c @@ -559,7 +559,10 @@ cleanup: @retval EFI_INVALID_PARAMETER The Image was NULL. @retval EFI_NOT_FOUND The current image is not copied to the buffer. @retval EFI_UNSUPPORTED The operation is not supported. - @retval EFI_SECURITY_VIOLATION The operation could not be performed due to an authentication failure. + @retval EFI_SECURITY_VIOLATION The operation could not be completed due to an image corruption. + If the image is able to be read, the Image buffer will be updated + with the retrieved image contents. + @retval EFI_DEVICE_ERROR The image could not be read. **/ EFI_STATUS