Skip to content

Commit 090688f

Browse files
guohanjunbjorn-helgaas
authored andcommitted
PCI: Release IVRS table in AMD ACS quirk
The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used at runtime to release the table mapping. In pci_quirk_amd_sb_acs(), IVRS table is just used for checking AMD IOMMU is supported, not used at runtime, so put the table after using it. Fixes: 15b100d ("PCI: Claim ACS support for AMD southbridge devices") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hanjun Guo <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 45beb31 commit 090688f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/quirks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4409,6 +4409,8 @@ static int pci_quirk_amd_sb_acs(struct pci_dev *dev, u16 acs_flags)
44094409
if (ACPI_FAILURE(status))
44104410
return -ENODEV;
44114411

4412+
acpi_put_table(header);
4413+
44124414
/* Filter out flags not applicable to multifunction */
44134415
acs_flags &= (PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_EC | PCI_ACS_DT);
44144416

0 commit comments

Comments
 (0)