From: thierry.reding@gmail•com (Thierry Reding)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v2] pwm: pwm-lpc18xx-sct: test clock rate to avoid division by 0
Date: Fri, 4 Mar 2016 16:01:06 +0100 [thread overview]
Message-ID: <20160304150106.GA26400@ulmo.nvidia.com> (raw)
In-Reply-To: <1456959443-10032-1-git-send-email-wsa@the-dreams.de>
On Wed, Mar 02, 2016 at 11:57:09PM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-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@sang-engineering•com>
> ---
> drivers/pwm/pwm-lpc18xx-sct.c | 5 +++++
> 1 file changed, 5 insertions(+)
Applied, thanks.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160304/f6a9192e/attachment.sig>
prev parent reply other threads:[~2016-03-04 15:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 22:57 [PATCH v2] pwm: pwm-lpc18xx-sct: test clock rate to avoid division by 0 Wolfram Sang
2016-03-02 23:28 ` Joachim Eastwood
2016-03-04 15:01 ` Thierry Reding [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160304150106.GA26400@ulmo.nvidia.com \
--to=thierry.reding@gmail$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox