diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-01-05 13:18:37 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-05 19:12:06 +0000 |
commit | ff2b46d7cff80d27d82f7f3252711f4ca1666129 (patch) | |
tree | d989290638769cca3becd7c334e8e12e4b73c9ed /drivers/iommu/amd | |
parent | 6775ae901ffd130d0be9c32837f88d1f9d560189 (diff) | |
download | linux-ff2b46d7cff80d27d82f7f3252711f4ca1666129.tar.bz2 |
iommu/intel: Fix memleak in intel_irq_remapping_alloc
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: b106ee63abcc ("irq_remapping/vt-d: Enhance Intel IR driver to support hierarchical irqdomains")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210105051837.32118-1-dinghao.liu@zju.edu.cn
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/amd')
0 files changed, 0 insertions, 0 deletions