[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11d46e56-b8d9-4776-9969-d3767d8cda41@linux.dev>
Date: Thu, 28 Aug 2025 13:05:55 +0100
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: Miaoqian Lin <linmq006@...il.com>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Thomas Gleixner <tglx@...utronix.de>,
Grygorii Strashko <grygorii.strashko@...com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH] net: ethernet: ti: Prevent divide-by-zero in
cpts_calc_mult_shift()
On 28/08/2025 10:22, Miaoqian Lin wrote:
> cpts_calc_mult_shift() has a potential divide-by-zero in this line:
>
> do_div(maxsec, freq);
>
> due to the fact that clk_get_rate() can return zero in certain error
> conditions.
Have you seen this happening in the real environment, or is it just
analysis of the code? I don't see a reason for these "certain error
conditions" to happen...
Powered by blists - more mailing lists