linux/drivers/clk/sirf
Yibo Cai 6132e89aef clk: atlas7: fix integer overflow in dto rate calculation
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>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-08-24 16:49:06 -07:00
..
atlas6.h
clk-atlas6.c clk: sirf: Properly include clk.h 2015-07-20 11:11:13 -07:00
clk-atlas7.c clk: atlas7: fix integer overflow in dto rate calculation 2015-08-24 16:49:06 -07:00
clk-common.c clk: sirf: Convert to clk_hw based provider APIs 2015-08-24 16:48:54 -07:00
clk-prima2.c clk: sirf: Properly include clk.h 2015-07-20 11:11:13 -07:00
Makefile clk: sirf: add CSR atlas7 clk and reset support 2015-05-20 15:43:28 -07:00
prima2.h