Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4633517ybl; Wed, 22 Jan 2020 01:41:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzYJRyOW2wz7LBc/pHsuQb0DhnaMFmOkSpsdnuRLynfbuNzcnS+9Cv0Wed4MAao7zdf7gSj X-Received: by 2002:aca:5490:: with SMTP id i138mr6319877oib.34.1579686079510; Wed, 22 Jan 2020 01:41:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579686079; cv=none; d=google.com; s=arc-20160816; b=GA0s7NevP2HJ+3kpWDiSM5GVZlvI4BlJTEOLPAy3LCtJ9plOFY+JdKRNlPlVCMrSQd 74A641jqFrLHeYND/zxZEBI/VWTVgPXevr+9mOT2xzWvi3qUAH5NUq94q9X4htuvQubS NEP+LXZwmhMgoQa5qJd2qKUoJ27D0D8jmtkR0SlFm/L0mJIEitS15DPN3iGeW8qceEW5 HY0bSLKZgXuoDBQB+C1f+9nuLyvuxDXZONNW5lniu1DOSBQeJzl/xFuEZXu+vBx9KUM3 b2EDBACNJuAM9SFVt/nyRBoPAFDtJPFedEi34g+qzfIeR4By8TfuyAvBV3W6ewtj2XRh LHiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ni99OSTBEEzN2VUWXePhSie3662Ot0nDvYcM7So74cw=; b=k+HZFjFe2klcROXLflNgxouEKZ1JMKsITIu8K1QHAtAw7mFqW7QRz3YQCkjD76Z6FV iWQ2hxxvQAmYOeMec18pKvuCM2K0ehPZX1oB2pXOdUv4zxIQS0yDPx3yst+LuA1SP4jd oLBcaLq2eNCwQVOO/JKAO7w3RckchTS3SMQIUCgeJvugT0VaMfQOvuyYJi8eqsP12Uzz Fncc25mn/fBFeRXbKksqLfh5MD2i23ppy8k3DU5ZBMttQhE9mhTeaQWx7MFxgyvmPlCO NipmUPpdQCOXYGwtC8Ki7tDaHxGAzvkSX7bbTHtv1WWOy+bQzJD3iRQbhOnxs7UYw/NK Z1CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tMCSW/W0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si23942698oti.104.2020.01.22.01.41.08; Wed, 22 Jan 2020 01:41:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tMCSW/W0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387434AbgAVJkR (ORCPT + 99 others); Wed, 22 Jan 2020 04:40:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:58816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387426AbgAVJkM (ORCPT ); Wed, 22 Jan 2020 04:40:12 -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 620CB24687; Wed, 22 Jan 2020 09:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579686011; bh=uekGNvBbb8iL4au83+tOTlq3z6PxAJJO3z4muAo2nhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tMCSW/W0zv2jUoVr/vNIO7bPW9t9aMKsNrdQM6SA+l+alTX94ZRdJWUy5EJsw5pcv wwl/F+bubdrE0CjD0QhYbvfcBeNtN+El9TS30coS7oj4aK8biN54LRjb98vQ9P7zq2 aGs3IP4tH13+8bebTqk67cXJwf80Cqn5wA1DR0oQ= 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.14 65/65] regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id Date: Wed, 22 Jan 2020 10:29:50 +0100 Message-Id: <20200122092801.461725060@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092750.976732974@linuxfoundation.org> References: <20200122092750.976732974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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, };