Vladimir Oltean <[email protected]> writes:

> The speed divisor is used in a context expecting an s64, but it is
> evaluated using 32-bit arithmetic.
>
> To avoid that happening, instead of multiplying by 1,000,000 in the
> first place, simplify the fraction and do a standard 32 bit division
> instead.
>
> Fixes: f04b514c0ce2 ("taprio: Set default link speed to 10 Mbps in 
> taprio_set_picos_per_byte")
> Reported-by: Gustavo A. R. Silva <[email protected]>
> Suggested-by: Eric Dumazet <[email protected]>
> Signed-off-by: Vladimir Oltean <[email protected]>
> ---

Acked-by: Vinicius Costa Gomes <[email protected]>

Reply via email to