From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751966AbdG0QSE (ORCPT ); Thu, 27 Jul 2017 12:18:04 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36238 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbdG0QSA (ORCPT ); Thu, 27 Jul 2017 12:18:00 -0400 From: Jerome Brunet To: Neil Armstrong , Michael Turquette , Stephen Boyd , Kevin Hilman Cc: Jerome Brunet , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] clk: meson: fix protection against undefined clks Date: Thu, 27 Jul 2017 18:17:53 +0200 Message-Id: <20170727161755.10393-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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