mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
CompatibleRangeTest() contains two bugs:
1. It doesn't reject the memory above 16MB
2. it cannot handle the case when the partial or whole range of
requested memory is already tested.
The patch fixes the two bugs.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
(cherry picked from commit 61c1742ba1)