[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160304150130.GB26400@ulmo.nvidia.com>
Date: Fri, 4 Mar 2016 16:01:30 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: linux-kernel@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-pwm@...r.kernel.org
Subject: Re: [PATCH 3/6] pwm: pwm-img: test clock rate to avoid division by 0
On Wed, Mar 02, 2016 at 11:33:34PM +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>
> ---
>
> Should go individually via subsystem tree.
>
> drivers/pwm/pwm-img.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