From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7 v2] clk: atlas7: fix integer overflow in dto rate calculation
Date: Tue, 11 Aug 2015 17:27:15 -0700 [thread overview]
Message-ID: <20150812002715.GE26614@codeaurora.org> (raw)
In-Reply-To: <1438699532-13860-4-git-send-email-21cnbao@gmail.com>
On 08/04, Barry Song wrote:
> From: Yibo Cai <yibo.cai@csr.com>
>
> I cannot believe that I spend quite a lot time in finding this bug.
> It seems a pitfall people tend to fall in.
>
> In "int64 = int32 * int32", conversion from 32-bits to 64-bits comes
> after the multiplication. So this statement may not work as expected.
>
> Signed-off-by: Yibo Cai <yibo.cai@csr.com>
> Signed-off-by: Barry Song <Baohua.Song@csr.com>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2015-08-12 0:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 14:45 [PATCH 0/7 v2] clk: atlas7: a bind of fixes Barry Song
2015-08-04 14:45 ` [PATCH 1/7 v2] clk: atlas7: add lost pwm unit clks Barry Song
2015-08-12 0:27 ` Stephen Boyd
2015-08-04 14:45 ` [PATCH 2/7 v2] clk: atlas7: export mux clks so that consumers can get them Barry Song
2015-08-12 0:27 ` Stephen Boyd
2015-08-04 14:45 ` [PATCH 3/7 v2] clk: atlas7: fix integer overflow in dto rate calculation Barry Song
2015-08-12 0:27 ` Stephen Boyd [this message]
2015-08-04 14:45 ` [PATCH 4/7 v2] clk: atlas7: replace dto resolution magic number by macro Barry Song
2015-08-12 0:27 ` Stephen Boyd
2015-08-04 14:45 ` [PATCH 5/7 v2] clk: atlas7: fix the clock tree for bluetooth stuff Barry Song
2015-08-04 14:45 ` [PATCH 6/7 v2] clk: atlas7: fix bit field and its root clk for coresight_tpiu Barry Song
2015-08-12 0:27 ` Stephen Boyd
2015-08-04 14:45 ` [PATCH 7/7] clk: atlas7: fix pll missed divide NR in fraction mode Barry Song
2015-08-12 0:30 ` Stephen Boyd
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=20150812002715.GE26614@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).