From: Peng Fan Date: Fri, 22 Nov 2019 06:11:42 +0000 (+0000) Subject: clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table X-Git-Tag: v5.4.7~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a5b1c2f5a1548fd117135b86d8fe9b8e49466e4;p=platform%2Fkernel%2Flinux-rpi.git clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table commit ed11e31709d7ddb19d4dc451d5bbfb15129f4cad upstream. There should be a sentinel of ulp_div_table, otherwise _get_table_div may access data out of the array. Fixes: b1260067ac3d ("clk: imx: add imx7ulp clk driver") Signed-off-by: Peng Fan Cc: Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index 2022d9b..a0f6501 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -40,6 +40,7 @@ static const struct clk_div_table ulp_div_table[] = { { .val = 5, .div = 16, }, { .val = 6, .div = 32, }, { .val = 7, .div = 64, }, + { /* sentinel */ }, }; static const int pcc2_uart_clk_ids[] __initconst = {