diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-10-09 16:03:18 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-11-04 21:47:21 +0100 |
commit | a2dc3f5e1022a5ede8af9ab89a144f1e69db8636 (patch) | |
tree | 622797c93b6106ce71a7a1085bc8c04c9be8d205 /drivers/net/caif/caif_serial.c | |
parent | 6caf8a6d6586d44fd72f4aa1021d14aa82affafb (diff) |
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>
Diffstat (limited to 'drivers/net/caif/caif_serial.c')
0 files changed, 0 insertions, 0 deletions