projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073a01e
)
clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table
author
Peng Fan
<peng.fan@nxp.com>
Fri, 22 Nov 2019 06:11:42 +0000
(06:11 +0000)
committer
Shawn Guo
<shawnguo@kernel.org>
Mon, 9 Dec 2019 02:53:45 +0000
(10:53 +0800)
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
patch
|
blob
|
history
diff --git
a/drivers/clk/imx/clk-imx7ulp.c
b/drivers/clk/imx/clk-imx7ulp.c
index 3fdf3d494f0afc305c0212fb57914f1abbbf498c..281191b55b3af5b59a43384bb2d1949d7393e98d 100644
(file)
--- 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 = {