diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-09-22 17:00:35 +0800 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-09-24 14:03:15 +0200 |
| commit | 108657f24706d2209c5ecc5bae933fab3975481e (patch) | |
| tree | 22c74351d9c96b69341d60467ec8b65f3e054fae /scripts/basic/split-include.c | |
| parent | f4eab1f88f792a5fb5965613551cd08071f7ceb8 (diff) | |
| download | linux-108657f24706d2209c5ecc5bae933fab3975481e.tar.gz linux-108657f24706d2209c5ecc5bae933fab3975481e.zip | |
iommu/amd: Fix leak of data->entry in irq_remapping_alloc() error path
In irq_remapping_alloc() each per-IRQ iteration allocates two objects:
the amd_ir_data (chip_data) and its data->entry (union irte / struct
irte_ga). The out_free_data error path only freed chip_data via
kfree(irq_data->chip_data), leaking data->entry for every already
initialized IRQ.
Free data->entry alongside data on the error path.
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
