]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sort...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 15 Jul 2019 18:53:08 +0000 (20:53 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:22 +0000 (21:47 +0100)
commit0b5b3bf1cb61e2fb7a917251e16ef76cf7e60578
treebd1bc40ada093678142021b6acc77b0346c9e65d
parentd90f4dfe21e6ab1bc7db85ca21df568d24d0dc0d
can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sorted() fails

The call to can_rx_offload_queue_sorted() may fail and return an error
(in the current implementation due to resource shortage). The passed skb
is consumed.

This patch adds incrementing of the appropriate error counters to let
the device statistics reflect that there's a problem.

Reported-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c