Marc Kleine-Budde
b3cc795471
can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
...
[ Upstream commit a2dc3f5e1022a5ede8af9ab89a144f1e69db8636 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:37:00 +01:00
..
2019-12-01 09:13:57 +01:00
2019-08-04 09:32:01 +02:00
2019-11-24 08:23:06 +01:00
2019-12-01 09:13:43 +01:00
2019-09-06 10:20:43 +02:00
2019-12-01 09:14:14 +01:00
2019-12-01 09:14:23 +01:00
2019-12-01 09:14:15 +01:00
2019-12-01 09:13:21 +01:00
2019-12-01 09:13:14 +01:00
2019-12-05 15:36:55 +01:00
2019-11-24 08:23:03 +01:00
2019-12-01 09:14:25 +01:00
2019-11-24 08:23:18 +01:00
2019-10-11 18:18:30 +02:00
2019-11-24 08:23:17 +01:00
2019-10-07 18:55:07 +02:00
2019-12-01 09:13:19 +01:00
2019-11-20 17:59:40 +01:00
2019-12-01 09:13:23 +01:00
2019-09-21 07:15:32 +02:00
2019-12-01 09:13:12 +01:00
2019-12-01 09:13:15 +01:00
2019-11-12 19:18:34 +01:00
2019-11-20 17:59:56 +01:00
2019-11-24 08:23:31 +01:00
2019-11-20 18:00:38 +01:00
2019-12-01 09:14:14 +01:00
2019-11-20 17:59:35 +01:00
2019-12-01 09:13:25 +01:00
2019-11-24 08:23:14 +01:00
2019-11-24 08:22:52 +01:00
2019-11-24 08:22:56 +01:00
2019-12-01 09:13:44 +01:00
2019-10-05 12:47:45 +02:00
2019-12-01 09:13:39 +01:00
2019-11-12 19:18:23 +01:00
2019-12-01 09:14:17 +01:00
2019-12-01 09:14:28 +01:00
2019-10-29 09:17:43 +01:00
2019-12-01 09:13:46 +01:00
2019-12-01 09:13:23 +01:00
2019-12-01 09:13:22 +01:00
2019-11-24 08:23:08 +01:00
2019-12-05 15:37:00 +01:00
2019-12-01 09:14:23 +01:00
2019-12-01 09:13:59 +01:00
2019-07-31 07:28:41 +02:00
2019-12-01 09:13:31 +01:00
2019-11-20 17:59:56 +01:00
2019-12-01 09:14:12 +01:00
2019-10-05 12:48:05 +02:00
2019-06-25 11:36:51 +08:00
2019-12-01 09:14:13 +01:00
2019-08-06 19:05:27 +02:00
2019-11-20 18:00:41 +01:00
2019-12-01 09:14:13 +01:00
2019-12-01 09:13:16 +01:00
2019-11-20 18:00:15 +01:00
2019-08-04 09:32:03 +02:00
2019-12-01 09:13:26 +01:00
2019-08-06 19:05:24 +02:00
2019-07-31 07:28:24 +02:00
2019-11-10 11:25:05 +01:00
2019-11-24 08:23:15 +01:00
2019-12-05 15:36:49 +01:00
2019-12-01 09:13:44 +01:00
2019-11-20 18:00:04 +01:00
2019-12-01 09:14:10 +01:00
2019-11-20 17:59:59 +01:00
2019-12-01 09:14:14 +01:00
2019-12-01 09:14:35 +01:00
2019-11-10 11:25:15 +01:00
2019-11-24 08:22:44 +01:00
2019-12-01 09:13:47 +01:00
2019-11-06 12:43:22 +01:00
2019-12-01 09:13:17 +01:00
2019-12-01 09:14:34 +01:00
2019-11-20 18:00:40 +01:00
2019-12-01 09:13:11 +01:00
2019-11-24 08:23:24 +01:00
2019-12-01 09:14:28 +01:00
2019-12-01 09:13:24 +01:00
2019-11-24 08:22:57 +01:00
2019-12-01 09:13:57 +01:00