Skip to content
Snippets Groups Projects
Commit ed11e317 authored by Peng Fan's avatar Peng Fan Committed by Shawn Guo
Browse files

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: b1260067 ("clk: imx: add imx7ulp clk driver")
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 073a01e8
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ static const struct clk_div_table ulp_div_table[] = { ...@@ -40,6 +40,7 @@ static const struct clk_div_table ulp_div_table[] = {
{ .val = 5, .div = 16, }, { .val = 5, .div = 16, },
{ .val = 6, .div = 32, }, { .val = 6, .div = 32, },
{ .val = 7, .div = 64, }, { .val = 7, .div = 64, },
{ /* sentinel */ },
}; };
static const int pcc2_uart_clk_ids[] __initconst = { static const int pcc2_uart_clk_ids[] __initconst = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment