Commit 9e662425 authored by Dario Binacchi's avatar Dario Binacchi Committed by Marc Kleine-Budde
Browse files

can: c_can: c_can_handle_bus_err(): update statistics if skb allocation fails



Ensure that the statistics are always updated, even if the skb
allocation fails.

Fixes: 4d6d2653 ("can: c_can: fix {rx,tx}_errors statistics")
Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-2-dario.binacchi@amarulasolutions.com


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 889b2ae9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment