Refine soma code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10877 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1637,7 +1637,7 @@ PciIoGetBarAttributes (
|
||||
|
||||
if (NumConfig == 1) {
|
||||
Ptr->Desc = ACPI_ADDRESS_SPACE_DESCRIPTOR;
|
||||
Ptr->Len = sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3;
|
||||
Ptr->Len = (UINT16) (sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3);
|
||||
|
||||
Ptr->AddrRangeMin = PciIoDevice->PciBar[BarIndex].BaseAddress;
|
||||
Ptr->AddrLen = PciIoDevice->PciBar[BarIndex].Length;
|
||||
|
Reference in New Issue
Block a user