Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1698149

[PATCH 0/2] clk: meson: fix protection against undefined clks

From Jerome Brunet <jbrunet@baylibre.com>
Newsgroups linux.kernel
Subject [PATCH 0/2] clk: meson: fix protection against undefined clks
Date 2017-07-27 18:20 +0200
Message-ID <u7TG3-8lQ-47@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] clk: meson: fix protection against undefined clks Jerome Brunet <jbrunet@baylibre.com> - 2017-07-27 18:20 +0200
  [PATCH 1/2] clk: meson: meson8b: fix protection against undefined clks Jerome Brunet <jbrunet@baylibre.com> - 2017-07-27 18:20 +0200
  [PATCH 2/2] clk: meson: gxbb: fix protection against undefined clks Jerome Brunet <jbrunet@baylibre.com> - 2017-07-27 18:30 +0200
  Re: [PATCH 0/2] clk: meson: fix protection against undefined clks Neil Armstrong <narmstrong@baylibre.com> - 2017-07-28 12:10 +0200

csiph-web