diff options
author | 2016-10-19 20:49:39 +0900 | |
---|---|---|
committer | 2016-10-19 13:14:18 -0700 | |
commit | 7d36b9c102318aa86aceb074359305da88ce9ef9 (patch) | |
tree | 253f26b37d4c3866f9bfe643d1e391f2fd751376 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | clk: hi6220: use CLK_OF_DECLARE_DRIVER for sysctrl and mediactrl clock init (diff) | |
download | wireguard-linux-7d36b9c102318aa86aceb074359305da88ce9ef9.tar.xz wireguard-linux-7d36b9c102318aa86aceb074359305da88ce9ef9.zip |
clk: uniphier: fix memory overrun bug
The first loop of this "for" statement writes memory beyond the
allocated clk_hw_onecell_data.
It should be:
for (clk_num--; clk_num >= 0; clk_num--)
...
Or more simply:
while (--clk_num >= 0)
...
Fixes: 734d82f4a678 ("clk: uniphier: add core support code for UniPhier clock driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions