Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FmpDevicePkg/FmpDxe: Update FmpDeviceCheckImageWithStatus() handling #2427

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

lgao4
Copy link
Contributor

@lgao4 lgao4 commented Jan 20, 2022

Update the logic handling last attempt status codes from
FmpDeviceCheckImageWithStatus() implementations to account for
cases when the function return status code is EFI_SUCCESS
(since the image was checked successfully) but the ImageUpdatable
value is not valid.

In addition the following sentence is removed from the
LastAttemptStatus parameter definition for
FmpDeviceCheckImageWithStatus() since it can lead to confusion.
The expected status code value range is sufficient to implement
the library API.

"This value will only be checked when this
function returns an error."

Cc: Liming Gao gaoliming@byosoft.com.cn
Cc: Michael D Kinney michael.d.kinney@intel.com
Cc: Guomin Jiang guomin.jiang@intel.com
Cc: Wei6 Xu wei6.xu@intel.com
Signed-off-by: Michael Kubacki michael.kubacki@microsoft.com
Reviewed-by: Guomin Jiang guomin.jiang@intel.com

Update the logic handling last attempt status codes from
FmpDeviceCheckImageWithStatus() implementations to account for
cases when the function return status code is EFI_SUCCESS
(since the image was checked successfully) but the ImageUpdatable
value is not valid.

In addition the following sentence is removed from the
LastAttemptStatus parameter definition for
FmpDeviceCheckImageWithStatus() since it can lead to confusion.
The expected status code value range is sufficient to implement
the library API.

  "This value will only be checked when this
   function returns an error."

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com>
@lgao4 lgao4 added the push Auto push patch series in PR if all checks pass label Jan 20, 2022
@mergify mergify bot merged commit 772c5bb into tianocore:master Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants