[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160304150106.GA26400@ulmo.nvidia.com>
Date: Fri, 4 Mar 2016 16:01:06 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: linux-kernel@...r.kernel.org,
Joachim Eastwood <manabian@...il.com>,
linux-pwm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2] pwm: pwm-lpc18xx-sct: test clock rate to avoid
division by 0
On Wed, Mar 02, 2016 at 11:57:09PM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@...g-engineering.com>
>
> The clk API may return 0 on clk_get_rate, so we should check the result before
> using it as a divisor.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@...g-engineering.com>
> ---
> drivers/pwm/pwm-lpc18xx-sct.c | 5 +++++
> 1 file changed, 5 insertions(+)
Applied, thanks.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists