linux-stable/drivers/clk/mmp
Dan Carpenter 4ff9a2f211 clk: mmp: Off by one in mmp_clk_add()
[ Upstream commit 2e85c57493 ]

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: 4661fda10f ("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>
2018-12-21 14:11:37 +01:00
..
clk-apbc.c clk: mmp: Remove clk.h include 2015-07-20 10:53:12 -07:00
clk-apmu.c clk: mmp: Remove clk.h include 2015-07-20 10:53:12 -07:00
clk-frac.c clk: mmp: fix sparse non static symbol warning 2014-12-11 12:14:09 -08:00
clk-gate.c clk: mmp: Convert to clk_hw based provider APIs 2015-08-24 16:48:49 -07:00
clk-mix.c clk: mmp: Convert to clk_hw based provider APIs 2015-08-24 16:48:49 -07:00
clk-mmp2.c clk: mmp: add missing header dependencies 2016-09-14 11:16:59 -07:00
clk-of-mmp2.c clk: mmp: mmp2: fix return value check in mmp2_clk_init() 2016-11-01 17:41:19 -07:00
clk-of-pxa168.c clk: mmp: pxa168: fix return value check in pxa168_clk_init() 2016-11-01 17:41:20 -07:00
clk-of-pxa910.c clk: mmp: pxa910: fix return value check in pxa910_clk_init() 2016-11-01 17:41:20 -07:00
clk-of-pxa1928.c clk: mmp: Remove CLK_IS_ROOT 2016-04-15 16:50:01 -07:00
clk-pxa168.c clk: mmp: Remove CLK_IS_ROOT 2016-04-15 16:50:01 -07:00
clk-pxa910.c clk: mmp: Remove CLK_IS_ROOT 2016-04-15 16:50:01 -07:00
clk.c clk: mmp: Off by one in mmp_clk_add() 2018-12-21 14:11:37 +01:00
clk.h clk: mmp: add basic support functions for DT support 2014-11-12 16:34:05 -08:00
Makefile clk: mmp: add PXA1928 clock support 2015-05-15 12:31:45 -07:00
reset.c clk: mmp: Make reset_control_ops const 2016-03-29 16:29:34 -07:00
reset.h clk: mmp: add reset support 2014-11-12 16:34:10 -08:00