Re: [RESEND PATCH] iommu/amd: Fix pci_segment memleak in alloc_pci_segment()
From: Jörg Rödel
Date: Thu Nov 13 2025 - 10:22:38 EST
On Tue, Oct 28, 2025 at 12:50:17AM +0800, Jinhui Guo wrote:
> Fix a memory leak of struct amd_iommu_pci_segment in alloc_pci_segment()
> when system memory (or contiguous memory) is insufficient.
>
> Fixes: 04230c119930 ("iommu/amd: Introduce per PCI segment device table")
> Fixes: eda797a27795 ("iommu/amd: Introduce per PCI segment rlookup table")
> Fixes: 99fc4ac3d297 ("iommu/amd: Introduce per PCI segment alias_table")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jinhui Guo <guojinhui.liam@xxxxxxxxxxxxx>
Applied, thanks.