提交 280b0471 编写于 作者: O Olof Johansson

Merge tag 'omap-for-v4.18/ti-sysc-fix-signed' of...

Merge tag 'omap-for-v4.18/ti-sysc-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/soc

One ti-sysc fix for v4.18 merge window

This fixes an array access errors if there are more optional clocks
than one.

* tag 'omap-for-v4.18/ti-sysc-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  bus: ti-sysc: Fix optional clocks array access
Signed-off-by: NOlof Johansson <olof@lixom.net>
...@@ -128,7 +128,7 @@ static int sysc_get_one_clock(struct sysc *ddata, const char *name) ...@@ -128,7 +128,7 @@ static int sysc_get_one_clock(struct sysc *ddata, const char *name)
if (index < 0) { if (index < 0) {
for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) { for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) {
if (!clock_names[i]) { if (!ddata->clocks[i]) {
index = i; index = i;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册