microsoft / mu_basecore

Project Mu BaseCore
https://microsoft.github.io/mu/
Other
242 stars 124 forks source link

[SQUASH ON REBASE] MdeModulePkg: UefiBootManagerLib: Move SetVariableCall #1080

Closed os-d closed 2 months ago

os-d commented 2 months ago

Description

BmLoadOption.c: Move Locking OptionName variable after calling SetVariable.

This commit was cherry-picked from 7c17fd9b3457a546dbcb7746a4f9aeebd4f85d1f. It was partially taken in https://github.com/microsoft/mu_basecore/commit/3483ae8dfa4165467f74648a40d74b8d9d63a545, but that commit merely added the SetVariable call in the new place, did not comment out the old location. As a result, we were attempting to call SetVariable after we had done a FreePool on Variable, which resulted in an exception.

For future integrations, this should be squashed with the above commit.

How This Was Tested

Booted SBSA to an OS.

Integration Instructions

N/A.

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Please upload report for BASE (release/202405@309cd8e). Learn more about missing BASE report.

Files Patch % Lines
...odulePkg/Library/UefiBootManagerLib/BmLoadOption.c 0.00% 11 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/202405 #1080 +/- ## ================================================= Coverage ? 0.68% ================================================= Files ? 642 Lines ? 219453 Branches ? 1356 ================================================= Hits ? 1502 Misses ? 217904 Partials ? 47 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1080/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [MdeModulePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1080/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.68% <0.00%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.