[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191001.095227.1125113002999915056.davem@davemloft.net>
Date: Tue, 01 Oct 2019 09:52:27 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: olteanv@...il.com
Cc: vinicius.gomes@...el.com, jhs@...atatu.com,
xiyou.wangcong@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net] net: sched: cbs: Avoid division by zero when
calculating the port rate
From: Vladimir Oltean <olteanv@...il.com>
Date: Sun, 29 Sep 2019 02:39:48 +0300
> 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>
Applied and queued up for -stable.
Powered by blists - more mailing lists