clk: sunxi-ng: Make sure divider tables have sentinel
authorJernej Skrabec <jernej.skrabec@siol.net>
Wed, 2 Dec 2020 20:38:17 +0000 (21:38 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 19 Dec 2020 23:54:02 +0000 (15:54 -0800)
commit48f68de00c1405351fa0e7bc44bca067c49cd0a3
tree43c1e63b7842cff4e5f60be0558f1422243657c9
parentd2d94fc567624f96187e8b52083795620f93e69f
clk: sunxi-ng: Make sure divider tables have sentinel

Two clock divider tables are missing sentinel at the end. Effect of that
is that clock framework reads past the last entry. Fix that with adding
sentinel at the end.

Issue was discovered with KASan.

Fixes: 0577e4853bfb ("clk: sunxi-ng: Add H3 clocks")
Fixes: c6a0637460c2 ("clk: sunxi-ng: Add A64 clocks")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://lore.kernel.org/r/20201202203817.438713-1-jernej.skrabec@siol.net
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sunxi-ng/ccu-sun50i-a64.c
drivers/clk/sunxi-ng/ccu-sun8i-h3.c