From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DE73C2D0DB for ; Wed, 22 Jan 2020 09:51:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B5FB2467B for ; Wed, 22 Jan 2020 09:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579686672; bh=uekGNvBbb8iL4au83+tOTlq3z6PxAJJO3z4muAo2nhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=RjC7bIOpq1oo2gXv3w9x2qoFuqql21CIFh4AuWnQCNT9hFrje11dfWXT+g56szAMb ajlm9caQ9OKIPDvCfSCWrC23HY9OooXaZd4vOrxpz1lAoobK/s5naU7ZMUpl2Olepk 6JELdV8Yen56+FrEi0/BJIsnbKFujd8qbTc1D4FY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732541AbgAVJh3 (ORCPT ); Wed, 22 Jan 2020 04:37:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:53608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731712AbgAVJh2 (ORCPT ); Wed, 22 Jan 2020 04:37:28 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84ED82467F; Wed, 22 Jan 2020 09:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685848; bh=uekGNvBbb8iL4au83+tOTlq3z6PxAJJO3z4muAo2nhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjJ7GbN2rd9XF2V0XFaawoKxwX+JTNecQRc+xYLQOOFBB8Msbxeu5NtzX2Atwi3KW pqUUjqH62voTtJ+qtKwEBgbM5WZ2CPFi05Ck3036/peMvzw0wrsx0Gu7nb8P3G0M7Y t6Ps8HAhseP+ZtNJFwa1naLprvZ0aSCyXjvRsH0c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Walleij , Stephan Gerhold , Mark Brown Subject: [PATCH 4.9 97/97] regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id Date: Wed, 22 Jan 2020 10:29:41 +0100 Message-Id: <20200122092811.526845228@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092755.678349497@linuxfoundation.org> References: <20200122092755.678349497@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Stephan Gerhold commit 458ea3ad033fc86e291712ce50cbe60c3428cf30 upstream. Those regulators are not actually supported by the AB8500 regulator driver. There is no ab8500_regulator_info for them and no entry in ab8505_regulator_match. As such, they cannot be registered successfully, and looking them up in ab8505_regulator_match causes an out-of-bounds array read. Fixes: 547f384f33db ("regulator: ab8500: add support for ab8505") Cc: Linus Walleij Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20191106173125.14496-2-stephan@gerhold.net Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- include/linux/regulator/ab8500.h | 2 -- 1 file changed, 2 deletions(-) --- a/include/linux/regulator/ab8500.h +++ b/include/linux/regulator/ab8500.h @@ -43,8 +43,6 @@ enum ab8505_regulator_id { AB8505_LDO_ANAMIC2, AB8505_LDO_AUX8, AB8505_LDO_ANA, - AB8505_SYSCLKREQ_2, - AB8505_SYSCLKREQ_4, AB8505_NUM_REGULATORS, };