Marc Kleine-Budde a2dc3f5e10 can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
The skb_queue is a linked list, holding the skb to be processed in the
next NAPI call.

Without this patch, the queue length in can_rx_offload_offload_one() is
limited to skb_queue_len_max + 1. As the skb_queue is a linked list, no
array or other resources are accessed out-of-bound, however this
behaviour is counterintuitive.

This patch limits the rx-offload skb_queue length to skb_queue_len_max.

Fixes: d254586c3453 ("can: rx-offload: Add support for HW fifo based irq offloading")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2019-11-04 21:47:21 +01:00
..
2019-11-01 15:06:46 -07:00
2019-10-24 14:53:48 -07:00
2019-08-08 18:03:42 -07:00
2019-07-30 14:21:32 -07:00
2019-11-01 10:36:46 -07:00
2019-09-26 08:56:17 +02:00
2019-07-03 11:24:38 -07:00
2019-09-27 20:58:35 +02:00
2019-07-30 14:21:32 -07:00
2019-10-24 14:53:48 -07:00