lkml.org 
[lkml]   [2017]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] clk: meson: fix protection against undefined clks
Date
If the last clkids defined have no hw pointer associated with them in
the hw_onecell_data array, the initialization is going to crash badly
because the array is not big enough.

The patchset makes sure the array is big enough, and that each clkid is
associated with a valid hw pointer, or NULL.

Doing it in two patches to ease backport, since we are not fixing the
same commit on meson8b and gxbb

Jerome Brunet (2):
clk: meson: meson8b: fix protection against undefined clks
clk: meson: gxbb: fix protection against undefined clks

drivers/clk/meson/gxbb.c | 2 ++
drivers/clk/meson/meson8b.c | 1 +
2 files changed, 3 insertions(+)

--
2.9.4

\
 
 \ /
  Last update: 2017-07-27 18:18    [W:0.081 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site