Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827297ybl; Wed, 22 Jan 2020 05:29:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzHPoANSGOrcoWyy3n1I11W2PVlDVV+wqSj+cc/BdZgFEfD6PkqW/cgj6lkP1qFb17lHPN4 X-Received: by 2002:a9d:74d8:: with SMTP id a24mr7711936otl.100.1579699763966; Wed, 22 Jan 2020 05:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699763; cv=none; d=google.com; s=arc-20160816; b=CZwfKr9wHgzA1mFUS0jzUcqXw2n+6wI/azGBrE6SelGTLoDjSrKcqsZHHW3EwBx3Bx zORusOCBccMuIr4AENrky5LojUqTrvheX+2i+GN2IG7AzDJlbwgg6wBqxZJGk+FNinj8 BBFHAXqMTOBPyn2n/PG2MXzbv8Yrbj6L3e1L6Sz/0/IvwZoz1KtKIYdwq5ixxQCoypGi aB5Bn9Ez5hzcvWoEJcvTSs7ujzwzNQA1+TTmRtlHA1eUseEd2nEXZBwXtTlPV1mDT1OD FYiDaELHvtqpzkFLiO7e6kPqQftlvdrS3E6/U5YBDB3y5XX7eGjF0ofHYFRKSL7sgEFt CsHg== 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=+1dU8X0GSRHT2SRTHlmxRWbBAK7wF/TLMA27MjzG+xY=; b=jNSQhDIbd3Cehqmxd1bN89EeIDrB6hb8VkmKKhQjimJEs8ZgBqvNljUALPgtPTS1E6 71wQpa/iXej1xyHS3KX6diMya/KFjJBvmYQB183iE8eT0EURmy7KqJ2A+E+6ygVV8wb8 9lY/en9SPjYthWa33Oy2ZWAUVkz2eSUd84fJt2I1HFAgFanY5FrK8l5wWCTa9mGiaUAV ftzMQMfstzMtFxGFAVpCA8v9TUoWMryQbTFWiLeD6Ee6rAkomfQzfzM78yeHSl9U0Znl R+Sqy6Fd1Pv7+JnAJoJWEmxJ+stiuAa/p2+lII4VbwTFKTJZP/+nQ5CJKjkg/gp7QYZK nYFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LLUkDaBa; 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 12si20181378oiz.131.2020.01.22.05.29.12; Wed, 22 Jan 2020 05:29:23 -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=LLUkDaBa; 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 S1729809AbgAVN2R (ORCPT + 99 others); Wed, 22 Jan 2020 08:28:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:50374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732178AbgAVN2O (ORCPT ); Wed, 22 Jan 2020 08:28:14 -0500 Received: from localhost (unknown [84.241.205.26]) (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 C45DE2468C; Wed, 22 Jan 2020 13:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699694; bh=h6R6eF3Xy3w927cB4R5iVZXTNoFWWrZcs3++RpjUH4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LLUkDaBat/M99y2KitBSlQ6UiPbZU0nAhz2kupBaSSQe9hZd8lY1DUcI/lMfnWLQx zro3EP4WnY4l5KrqtTdU4f18+GFJmUnD1nKZJCMzgxTM/nMWxZ3/O5mj48fSiv3cWf k+imfXiynXDnMENASXlMhuzzZmT5u1YSYrfpP/cM= 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 5.4 220/222] regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id Date: Wed, 22 Jan 2020 10:30:06 +0100 Message-Id: <20200122092849.437883897@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@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 @@ -42,8 +42,6 @@ enum ab8505_regulator_id { AB8505_LDO_ANAMIC2, AB8505_LDO_AUX8, AB8505_LDO_ANA, - AB8505_SYSCLKREQ_2, - AB8505_SYSCLKREQ_4, AB8505_NUM_REGULATORS, };