diff options
| author | snowpiaoling <1972997989@qq.com> | 2026-08-07 07:28:34 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-04 04:50:12 +0300 |
| commit | 33ce6ba36d40f6a89cf8a0dc55ff358b938bda6d (patch) | |
| tree | 1f9cfb29ed93e49506cb601e681add24b38188c9 /BaseTools/Source/Python/Workspace/MetaFileParser.py | |
| parent | 955de2ab54bfee16789a5fd9a7bb75449a821eb5 (diff) | |
| download | edk2-33ce6ba36d40f6a89cf8a0dc55ff358b938bda6d.tar.xz | |
EmbeddedPkg: MmcIoBlocks: Fix logical error in timeout
In eMMC status detection logic in the `MmcIoBlocks' function, if a timeout
occurs, the Timeout variable will end with a value -1 as the self-
subtraction operation is performed after determining 0 in the while loop.
This means that the function could never return a `EFI_NOT_READY' status.
As Timeout is of a signed type, change the conditional statement to
less-than-or-equal to 0 to fix timeout/busy detection.
Signed-off-by: snowpiaoling <1972997989@qq.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileParser.py')
0 files changed, 0 insertions, 0 deletions
