kernel_optimize_test/drivers/clk/uniphier
Masahiro Yamada 7d36b9c102 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: 734d82f4a6 ("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>
2016-10-19 13:14:18 -07:00
..
clk-uniphier-core.c clk: uniphier: fix memory overrun bug 2016-10-19 13:14:18 -07:00
clk-uniphier-fixed-factor.c
clk-uniphier-fixed-rate.c
clk-uniphier-gate.c
clk-uniphier-mio.c clk: uniphier: add clock data for UniPhier SoCs 2016-09-16 16:31:38 -07:00
clk-uniphier-mux.c clk: uniphier: fix type of variable passed to regmap_read() 2016-10-17 15:20:52 -07:00
clk-uniphier-peri.c clk: uniphier: add clock data for UniPhier SoCs 2016-09-16 16:31:38 -07:00
clk-uniphier-sys.c clk: uniphier: add clock data for UniPhier SoCs 2016-09-16 16:31:38 -07:00
clk-uniphier.h clk: uniphier: add clock data for UniPhier SoCs 2016-09-16 16:31:38 -07:00
Kconfig
Makefile clk: uniphier: add clock data for UniPhier SoCs 2016-09-16 16:31:38 -07:00