commit | 9a43be9cedd516f188e6333d3b43402386723eff | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Dec 03 17:52:01 2018 +0300 |
committer | Stephen Boyd <sboyd@kernel.org> | Mon Dec 03 09:54:48 2018 -0800 |
tree | c0d18204a8241806ba758414beb67e6f840e7d4a | |
parent | 2e85c57493e391b93445c1e0d530b36b95becc64 [diff] |
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: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>