Re: [PATCH] [v2] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-05 Thread Will Deacon
On Tue, 5 Jan 2021 13:18:37 +0800, Dinghao Liu wrote: > When irq_domain_get_irq_data() or irqd_cfg() fails > at i == 0, data allocated by kzalloc() has not been > freed before returning, which leads to memleak. Applied to arm64 (for-next/iommu/fixes), thanks! [1/1] iommu/intel: Fix memleak in int

Re: [PATCH] [v2] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-05 Thread Lu Baolu
On 2021/1/5 13:18, Dinghao Liu wrote: When irq_domain_get_irq_data() or irqd_cfg() fails at i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abccb ("irq_remapping/vt-d: Enhance Intel IR driver to support hierarchical irqdomains") Si