diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-03 17:51:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-21 14:09:53 +0100 |
commit | 1370aabe19c1e55fbe4bb62b035be797ab7db7ad (patch) | |
tree | 3705695725ed61155a87f97e055245582d1c42eb /drivers/input | |
parent | a4d64fc0968d36a2c5ec9f5e9194ac01c5498a6e (diff) |
clk: mmp: Off by one in mmp_clk_add()
[ Upstream commit 2e85c57493e391b93445c1e0d530b36b95becc64 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions