summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorTobias Schumacher <ts@linux.ibm.com>2026-10-09 08:15:52 +0200
committerHeiko Carstens <hca@linux.ibm.com>2026-10-13 17:01:47 +0200
commit769f66f595c11185c66913ea5d96420504bfebc3 (patch)
treebeda848e32963127f7442a713e6f31f6cdc78363 /tools/lib/python
parent422d75ad5bc96b8eb9cb3cfd9d68fc685a0a9b75 (diff)
downloadlinux-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