--- Begin Message ---
Wen Yang <[email protected]> writes:

> The variables 'window_interval' is u64 and do_div()
> truncates it to 32 bits, which means it can test
> non-zero and be truncated to zero for division.
> The unit of window_interval is nanoseconds,
> so its lower 32-bit is relatively easy to exceed.
> Fix this issue by using div64_u64() instead.
>
> Fixes: 7298de9cd725 ("sch_cake: Add ingress mode")
> Signed-off-by: Wen Yang <[email protected]>
> Cc: Kevin Darbyshire-Bryant <[email protected]>
> Cc: Toke Høiland-Jørgensen <[email protected]>
> Cc: David S. Miller <[email protected]>
> Cc: Cong Wang <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]

Acked-by: Toke Høiland-Jørgensen <[email protected]>

--- End Message ---
_______________________________________________
Cake mailing list
[email protected]
https://lists.bufferbloat.net/listinfo/cake

Reply via email to