kernel_samsung_a53x/drivers/net/can
Dario Binacchi 6224dab248 can: sun4i_can: sun4i_can_err(): call can_change_state() even if cf is NULL
[ Upstream commit ee6bf3677ae03569d833795064e17f605c2163c7 ]

Call the function can_change_state() if the allocation of the skb
fails, as it handles the cf parameter when it is null.

Additionally, this ensures that the statistics related to state error
counters (i. e. warning, passive, and bus-off) are updated.

Fixes: 0738eff14d81 ("can: Allwinner A10/A20 CAN Controller support - Kernel module")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-3-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:25 +01:00
..
c_can can: c_can: fix {rx,tx}_errors statistics 2024-11-30 02:33:22 +01:00
cc770
dev
ifi_canfd
m_can Revert "can: m_can: Add support for transceiver as phy" 2024-11-24 00:23:29 +01:00
mscan
peak_canfd
rcar
sja1000
softing
spi Revert "can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open" 2024-11-24 00:23:45 +01:00
usb
at91_can.c
flexcan.c
grcan.c
janz-ican3.c
Kconfig
kvaser_pciefd.c
led.c
Makefile
pch_can.c
slcan.c
sun4i_can.c can: sun4i_can: sun4i_can_err(): call can_change_state() even if cf is NULL 2024-12-17 13:24:25 +01:00
ti_hecc.c
vcan.c
vxcan.c
xilinx_can.c