fix: [PCIe] Fix assert check

Assert check was one off causing problem for corner cases.
Upated the check.

Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
This commit is contained in:
Sachin Kamat 2023-08-02 20:52:57 +05:30 committed by Guo Dong
parent 74e12f7708
commit 2e2ceabafd
1 changed files with 1 additions and 1 deletions

View File

@ -1639,7 +1639,7 @@ PciProgramResources (
Root->PciBar[BarType - 1].BaseAddress = Address;
if (Root->PciBar[BarType - 1].Length > 0) {
ResBase[Index] += Root->PciBar[BarType - 1].Length;
ASSERT (ResBase[Index] <= ResLimit[Index]);
ASSERT (ResBase[Index] <= (ResLimit[Index] + 1));
}
ProgramResource (Root, BarType);