linux/drivers/net/can/usb
Marc Kleine-Budde 2dd5c7f420 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>
History 2023-09-13 09:42:31 +02:00
..
etas_es58x can: etas_es58x: es58x_init_netdev(): free netdev when register_candev() 2022-11-24 16:10:04 +01:00
kvaser_usb can: kvaser_usb: hydra: help gcc-13 to figure out cmd_len 2023-02-25 11:25:40 +01:00
peak_usb can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
ems_usb.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
esd_usb.c can: esd_usb: Make use of can_change_state() and relocate checking skb for NULL 2023-03-10 09:33:06 +01:00
gs_usb.c can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM 2023-09-13 09:42:31 +02:00
Kconfig can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
Makefile can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
mcba_usb.c can: mcba_usb: Fix termination command argument 2022-11-24 16:26:48 +01:00
ucan.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
usb_8dev.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00