mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
iommu/amd: Fix pci_segment memleak in alloc_pci_segment()
commit75ba146c26upstream. Fix a memory leak of struct amd_iommu_pci_segment in alloc_pci_segment() when system memory (or contiguous memory) is insufficient. Fixes:04230c1199("iommu/amd: Introduce per PCI segment device table") Fixes:eda797a277("iommu/amd: Introduce per PCI segment rlookup table") Fixes:99fc4ac3d2("iommu/amd: Introduce per PCI segment alias_table") Cc: stable@vger.kernel.org Signed-off-by: Jinhui Guo <guojinhui.liam@bytedance.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00ed0cc572
commit
47bed96dc7
1 changed files with 12 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue