diff options
| author | Tobias Schumacher <ts@linux.ibm.com> | 2026-10-09 08:15:52 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-10-13 17:01:47 +0200 |
| commit | 769f66f595c11185c66913ea5d96420504bfebc3 (patch) | |
| tree | beda848e32963127f7442a713e6f31f6cdc78363 /tools/lib/python | |
| parent | 422d75ad5bc96b8eb9cb3cfd9d68fc685a0a9b75 (diff) | |
| download | linux-next-769f66f595c11185c66913ea5d96420504bfebc3.tar.gz linux-next-769f66f595c11185c66913ea5d96420504bfebc3.zip | |
s390/pci: Add error cleanup in zpci_directed_irq_init()
If per-CPU airq_iv allocation fails in the loop, previously allocated
vectors and arrays leak. Add proper error path to release all resources
on failure.
The error path frees zpci_sbv, but SIC_IRQ_MODE_DIRECT has already
programmed its address into the hardware. Set the directed interrupt
mode only after all allocations have succeeded, so a failed init leaves
no freed memory registered with the hardware.
Fixes: e979ce7bced2 ("s390/pci: provide support for CPU directed interrupts")
Cc: stable@vger.kernel.org
Signed-off-by: Tobias Schumacher <ts@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
