summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-softirq.h
diff options
context:
space:
mode:
authorYibo Cai <yibo.cai@csr.com>2015-08-04 14:45:28 +0000
committerMichael Turquette <mturquette@baylibre.com>2015-08-24 16:49:06 -0700
commit6132e89aef51df044246b5aef822144217794ae1 (patch)
treea4fe32bdd7218f86792eb8b5d26daa2de417200b /lib/locking-selftest-softirq.h
parentb1062298fea59dca23cdbcafaa5bed79c273d88f (diff)
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>
Diffstat (limited to 'lib/locking-selftest-softirq.h')
0 files changed, 0 insertions, 0 deletions