[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <875zl991ve.fsf@linux.intel.com>
Date: Mon, 30 Sep 2019 09:37:25 -0700
From: Vinicius Costa Gomes <vinicius.gomes@...el.com>
To: Vladimir Oltean <olteanv@...il.com>, davem@...emloft.net
Cc: jhs@...atatu.com, xiyou.wangcong@...il.com, netdev@...r.kernel.org,
Vladimir Oltean <olteanv@...il.com>
Subject: Re: [PATCH net] net: sched: cbs: Avoid division by zero when calculating the port rate
Vladimir Oltean <olteanv@...il.com> writes:
> As explained in the "net: sched: taprio: Avoid division by zero on
> invalid link speed" commit, it is legal for the ethtool API to return
> zero as a link speed. So guard against it to ensure we don't perform a
> division by zero in kernel.
>
> Fixes: e0a7683d30e9 ("net/sched: cbs: fix port_rate miscalculation")
> Signed-off-by: Vladimir Oltean <olteanv@...il.com>
> ---
Acked-by: Vinicius Costa Gomes <vinicius.gomes@...el.com>
Powered by blists - more mailing lists