]> www.infradead.org Git - users/willy/pagecache.git/commit
can: hi311x: hi3110_can_ist(): update state error statistics if skb allocation fails
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Fri, 22 Nov 2024 22:15:46 +0000 (23:15 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 26 Nov 2024 09:50:28 +0000 (10:50 +0100)
commitef5034aed9e03c649386f50e67a0867062d00d7f
tree1d9ddf939c1a45e84a3bb1cd34bee4d28fa40098
parent9ad86d377ef4a19c75a9c639964879a5b25a433b
can: hi311x: hi3110_can_ist(): update state error statistics if skb allocation fails

Ensure that the statistics related to state error counters
(i. e. warning, passive, and bus-off) are updated even in case the skb
allocation fails. Additionally, also handle bus-off state is now.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-6-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/hi311x.c