WSL2-Linux-Kernel/drivers/net/can
Simon Horman 508b52aa95 can: m_can: Release irq on error in m_can_open
[ Upstream commit 06d4ef3056a7ac31be331281bb7a6302ef5a7f8a ]

It appears that the irq requested in m_can_open() may be leaked
if an error subsequently occurs: if m_can_start() fails.

Address this by calling free_irq in the unwind path for
such cases.

Flagged by Smatch.
Compile tested only.

Fixes: eaacfeaca7 ("can: m_can: Call the RAM init directly from m_can_chip_config")
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/all/20240805-mcan-irq-v2-1-7154c0484819@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-12 11:07:46 +02:00
..
c_can can: c_can: don't cache TX messages for C_CAN cores 2022-10-05 10:39:37 +02:00
cc770 can: cc770: cc770_isa_probe(): add missing free_cc770dev() 2022-12-08 11:28:40 +01:00
dev can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds 2023-11-20 11:08:15 +01:00
ifi_canfd
m_can can: m_can: Release irq on error in m_can_open 2024-09-12 11:07:46 +02:00
mscan can: mscan: mpc5xxx: mpc5xxx_can_probe(): add missing put_clock() in error path 2022-11-03 23:59:17 +09:00
peak_canfd
rcar can: rcar_canfd: rcar_canfd_handle_global_receive(): fix IRQ storm on global FIFO receive 2022-11-03 23:59:20 +09:00
sja1000 can: sja1000_isa: sja1000_isa_probe(): add missing free_sja1000dev() 2022-12-08 11:28:40 +01:00
softing can: softing: softing_startstop(): fix set but not used variable warning 2022-01-27 11:04:01 +01:00
spi can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open 2024-09-12 11:07:44 +02:00
usb can: kvaser_usb: fix return value for hif_usb_send_regout 2024-07-27 10:46:11 +02:00
Kconfig
Makefile
at91_can.c
flexcan.c can: flexcan: flexcan_mailbox_read() fix return value for drop = true 2022-09-28 11:11:44 +02:00
grcan.c can: grcan: grcan_probe(): remove extra of_node_get() 2022-07-12 16:34:48 +02:00
janz-ican3.c
kvaser_pciefd.c can: kvaser_pciefd: Disable interrupts in probe error path 2023-05-24 17:36:54 +01:00
led.c
pch_can.c can: pch_can: pch_can_error(): initialize errc before using it 2022-08-17 14:23:33 +02:00
slcan.c
sun4i_can.c can: sun4i_can: do not report txerr and rxerr during bus-off 2022-08-17 14:23:33 +02:00
ti_hecc.c
vcan.c
vxcan.c net: validate veth and vxcan peer ifindexes 2023-08-30 16:18:14 +02:00
xilinx_can.c Revert "can: xilinx_can: Limit CANFD brp to 2" 2022-07-21 21:24:40 +02:00