]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Release IVRS table in AMD ACS quirk
authorHanjun Guo <guohanjun@huawei.com>
Wed, 22 Jul 2020 09:44:28 +0000 (17:44 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 29 Jul 2020 23:05:13 +0000 (18:05 -0500)
commit656350151e07a06cce3ef090cfb5898f7a9cdf5d
tree07ca1f2cc6780a39921e8186223f33797fa1313e
parent9105a35babd7c0e702e7e642bfd0bda767913eb8
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: 858f6e97f4cf ("PCI: Claim ACS support for AMD southbridge devices")
Link: https://lore.kernel.org/r/1595411068-15440-1-git-send-email-guohanjun@huawei.com
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c