Commit c5435a6d authored by Dario Binacchi's avatar Dario Binacchi Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit 9e662425 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b6109556
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment