aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2020-01-06 06:10:39 -0800
committerDavid S. Miller <[email protected]>2020-01-08 12:40:47 -0800
commitd9e15a2733067c9328fb56d98fe8e574fa19ec31 (patch)
treefcba680930ee393e0c16aa75b782975674cba89c /drivers/fpga/fpga-mgr.c
parentb969fee12b6330fd6a0b15337a314d5b5ee56916 (diff)
pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM
As diagnosed by Florian : If TCA_FQ_QUANTUM is set to 0x80000000, fq_deueue() can loop forever in : if (f->credit <= 0) { f->credit += q->quantum; goto begin; } ... because f->credit is either 0 or -2147483648. Let's limit TCA_FQ_QUANTUM to no more than 1 << 20 : This max value should limit risks of breaking user setups while fixing this bug. Fixes: afe4fd062416 ("pkt_sched: fq: Fair Queue packet scheduler") Signed-off-by: Eric Dumazet <[email protected]> Diagnosed-by: Florian Westphal <[email protected]> Reported-by: [email protected] Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions