summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2026-09-02 00:21:47 -0600
committerVinod Koul <vkoul@kernel.org>2026-10-05 15:44:11 +0200
commit268f9159ebf38a7ed134e5008e705d8ff99e1c20 (patch)
treede7522b560437dbb766c4dea5f98020e08fdb1a1 /tools/lib/python
parent50bf400915d308b80729bae8c6c85f001d7b7295 (diff)
dmaengine: switchtec-dma: fix chan_status_irq cleanup on create() error
chan_status_irq stores an MSI-X vector index, but err_exit freed it with plain free_irq() instead of pci_free_irq(), which would free the wrong Linux IRQ. The guard also treated a valid vector index of 0 as unset, skipping the free entirely in that case and leaving the handler registered against soon-to-be-freed swdma_dev. Initialize chan_status_irq to -1 and use the value being non-negative to signal when to free it with pci_free_irq(). Reported-by: Sashiko <sashiko-bot@kernel.org> Link: https://lore.kernel.org/dmaengine/20260717223431.625EE1F000E9@smtp.kernel.org Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Link: https://patch.msgid.link/20260902062153.31048-6-logang@deltatee.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions