clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table
authorPeng Fan <peng.fan@nxp.com>
Fri, 22 Nov 2019 06:11:42 +0000 (06:11 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 9 Dec 2019 02:53:45 +0000 (10:53 +0800)
commited11e31709d7ddb19d4dc451d5bbfb15129f4cad
treed408ba08867052387a8d155f1c04013dec23dc15
parent073a01e8d7c23b3efb59a3d4c20aa546f9ec29a9
clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table

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 <peng.fan@nxp.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx7ulp.c