]> git.baikalelectronics.ru Git - kernel.git/commit
can: ti_hecc: ti_hecc_error(): increase error counters if skb enqueueing via can_rx_o...
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)
commit284c6ddbef037250d8781601a058403024b898a2
tree0d0d2a6626a95e94f447fdc71d3e47aa9be65f3f
parentd6cd44314c3630f59a1fd1a2c0df9bc3bd35caab
can: ti_hecc: ti_hecc_error(): 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.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c