Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 734d82f ("clk: uniphier: add core support code for UniPhier clock driver") Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
- Loading branch information