diff options
| author | Tobias Schumacher <ts@linux.ibm.com> | 2026-10-09 08:15:49 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-10-13 17:01:47 +0200 |
| commit | 4a185d99179a307d856dc43610cfe72395d0c42a (patch) | |
| tree | 1e5d68966221a8683d24204f0738b135af19a1db /tools/perf/scripts/python/stackcollapse.py | |
| parent | 31c66bd273303590fe69fad370e72a12faa0bf76 (diff) | |
| download | linux-4a185d99179a307d856dc43610cfe72395d0c42a.tar.gz linux-4a185d99179a307d856dc43610cfe72395d0c42a.zip | |
s390/pci: Fix resource leak in zpci MSI setup
If airq_iv_create() fails in __alloc_airq(), the zpci_sbv bit allocated
by airq_iv_alloc_bit() is never freed. This permanently leaks one of the
ZPCI_NR_DEVICES summary bits, reducing system capacity with each failed
device hotplug. In systems with repeated device insertion failures or
under memory pressure, all summary bits can be exhausted, preventing new
PCI devices from being added until reboot.
Add proper error handling to free the zpci_sbv bit and reset zdev->aisb
if the AIBV creation fails.
Fixes: f770950a4709 ("s390/pci: Migrate s390 IRQ logic to IRQ domain API")
Cc: stable@vger.kernel.org
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Tobias Schumacher <ts@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
