[PATCH] ARM: omap1: Fix request_irq() leak

Kevin Hilman khilman at baylibre.com
Wed Dec 2 16:08:01 PST 2026


On Thu, 26 Nov 2026 11:19:44 +0100, Thomas Fourier wrote:
> omap_system_dma_probe() requests one IRQ per channel with request_irq().
> If an error occurs afterwards, probe returns without freeing the
> requested IRQs. As dma_chan is allocated with devm_kcalloc, it is freed
> if probe() fails. If one of the allocated IRQ is called, it dereferences
> dma_chan causing a use after free.
> 
> Use devm_request_irq() to make cleanup automatic.
> 
> [...]

Applied, thanks!

[1/1] ARM: omap1: Fix request_irq() leak
      commit: 7c518e39a057d558f2525b34592445e43ccb711d

Best regards,
-- 
Kevin Hilman (TI) <khilman at baylibre.com>




More information about the linux-arm-kernel mailing list