linux_dsm_epyc7002/drivers/clk/zynqmp
Dan Carpenter 9a43be9ced clk: zynqmp: Off by one in zynqmp_is_valid_clock()
The > comparison should be >= to prevent reading beyond the end of the
clock[] array.

(The clock[] array is allocated in zynqmp_clk_setup() and has
clock_max_idx elements.)

Fixes: 3fde0e16d0 ("drivers: clk: Add ZynqMP clock driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2018-12-03 09:54:48 -08:00
..
clk-gate-zynqmp.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clk-mux-zynqmp.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clk-zynqmp.h drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clkc.c clk: zynqmp: Off by one in zynqmp_is_valid_clock() 2018-12-03 09:54:48 -08:00
divider.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
Kconfig drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
Makefile drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
pll.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00