-
- Downloads
can: m_can: m_can_close(): don't call free_irq() for IRQ-less devices
In commit b382380c ("can: m_can: Add hrtimer to generate software interrupt") support for IRQ-less devices was added. Instead of an interrupt, the interrupt routine is called by a hrtimer-based polling loop. That patch forgot to change free_irq() to be only called for devices with IRQs. Fix this, by calling free_irq() conditionally only if an IRQ is available for the device (and thus has been requested previously). Fixes: b382380c ("can: m_can: Add hrtimer to generate software interrupt") Reviewed-by:Simon Horman <horms@kernel.org> Reviewed-by:
Markus Schneider-Pargmann <msp@baylibre.com> Link: https://patch.msgid.link/20240930-m_can-cleanups-v1-1-001c579cdee4@pengutronix.de Cc: <stable@vger.kernel.org> # v6.6+ Signed-off-by:
Marc Kleine-Budde <mkl@pengutronix.de>
Please register or sign in to comment