mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: meson: fix protection against undefined clks
@ 2017-07-27 16:17 Jerome Brunet
  2017-07-27 16:17 ` [PATCH 1/2] clk: meson: meson8b: " Jerome Brunet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jerome Brunet @ 2017-07-27 16:17 UTC (permalink / raw)
  To: linus-amlogic

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-28 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-27 16:17 [PATCH 0/2] clk: meson: fix protection against undefined clks Jerome Brunet
2017-07-27 16:17 ` [PATCH 1/2] clk: meson: meson8b: " Jerome Brunet
2017-07-27 16:17 ` [PATCH 2/2] clk: meson: gxbb: " Jerome Brunet
2017-07-28 10:07 ` [PATCH 0/2] clk: meson: " Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®