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:Dario Binacchi <dario.binacchi@amarulasolutions.com> Link: https://patch.msgid.link/20241122221650.633981-2-dario.binacchi@amarulasolutions.com Signed-off-by:
Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading