linux-stable/drivers/net/can
Marc Kleine-Budde 5c75a43795 can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM
[ Upstream commit 6c8bc15f02 ]

In case of an RX overflow error from the CAN controller and an OOM
where no skb can be allocated, the error counters are not incremented.

Fix this by first incrementing the error counters and then allocate
the skb.

Fixes: d08e973a77 ("can: gs_usb: Added support for the GS_USB CAN devices")
Link: https://lore.kernel.org/all/20230718-gs_usb-cleanups-v1-7-c3b9154ec605@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:22:32 +02:00
..
c_can
cc770
dev
ifi_canfd
m_can
mscan
peak_canfd
rcar
sja1000
softing
spi
usb can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM 2023-09-19 12:22:32 +02:00
at91_can.c
flexcan.c
grcan.c
janz-ican3.c
Kconfig
kvaser_pciefd.c can: kvaser_pciefd: Disable interrupts in probe error path 2023-05-24 17:36:54 +01:00
led.c
Makefile
pch_can.c
slcan.c
sun4i_can.c
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