linux/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>
History 2023-09-19 12:22:32 +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: netlink: allow configuring of fixed data bit rates without need for do_set_data_bittiming callback 2022-08-17 14:23:20 +02:00
ifi_canfd can: dev: can_get_echo_skb(): extend to return can frame length 2021-01-14 08:43:43 +01:00
m_can can: tcan4x5x: Fix use of register error status mask 2022-12-31 13:14:20 +01: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 can: peak_pciefd: pucan_handle_status(): fix a potential starvation issue in TX path 2021-06-24 08:40:10 +02:00
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: mcp251x_can_probe(): add missing unregister_candev() in error path 2022-11-03 23:59:17 +09:00
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 net: at91_can: fix the comments style issue 2021-07-25 11:36:27 +02:00
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 can: janz-ican3: use DEVICE_ATTR_RO/RW() helper macro 2021-07-25 11:36:26 +02:00
Kconfig can: flexcan: update Kconfig to enable coldfire 2021-07-25 11:36:29 +02:00
kvaser_pciefd.c can: kvaser_pciefd: Disable interrupts in probe error path 2023-05-24 17:36:54 +01:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile can: dev: move driver related infrastructure into separate subdir 2021-01-13 09:42:58 +01:00
pch_can.c can: pch_can: pch_can_error(): initialize errc before using it 2022-08-17 14:23:33 +02:00
slcan.c tty: no checking of tty_unregister_ldisc 2021-05-13 16:57:17 +02:00
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 can: rx-offload: add skb queue for use during ISR 2021-07-25 11:36:25 +02:00
vcan.c net: introduce CAN specific pointer in the struct net_device 2021-02-24 14:32:15 -08:00
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