]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76e12d736debe0e64ac09c1116930ea67856a621
treed408ba08867052387a8d155f1c04013dec23dc15
parentc60c7c5185c7577fc92b06ff449c1b831fd7ee36
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: cf73cbb92a40 ("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