diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-03 15:51:43 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-12-03 18:54:48 +0100 |
commit | 2e85c57493e391b93445c1e0d530b36b95becc64 (patch) | |
tree | 86b02df835a2f43eab2a64bd94117651d789eba4 /drivers/clk/clk-fractional-divider.c | |
parent | clk: mvebu: Off by one bugs in cp110_of_clk_get() (diff) | |
download | linux-2e85c57493e391b93445c1e0d530b36b95becc64.tar.xz linux-2e85c57493e391b93445c1e0d530b36b95becc64.zip |
clk: mmp: Off by one in mmp_clk_add()
The > comparison should be >= or we write one element beyond the end of
the unit->clk_table[] array.
(The unit->clk_table[] array is allocated in the mmp_clk_init() function
and it has unit->nr_clks elements).
Fixes: 4661fda10f8b ("clk: mmp: add basic support functions for DT support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-fractional-divider.c')
0 files changed, 0 insertions, 0 deletions