Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6027621ybc; Wed, 27 Nov 2019 13:39:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyruSypX0qZvlNByfr+c9VgWBVQABWGSY++dVXZM3/elA5s48+71/13kqeIHyMSsLfoypMu X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr51699254ejb.179.1574890786106; Wed, 27 Nov 2019 13:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890786; cv=none; d=google.com; s=arc-20160816; b=gT88yMg5giRg4GiB7axNLyfpzbRKJCuXOgt0RerzRB25l0nixzcLj/RYoET5ISjDBs 1b9Y8tZkGMsAhnkeAaG/SrbsYpl1YQIvydFXwTkxY7sV63EOQOphpPZAAenPPlroxO7t nl8puqZZvUKAHeGxNNiD0qM6z3724FvNz+msYmui1OfVR3Cr1ZEAD0QkbUQoOdy5hUY8 RITHwt5VqmaBEkomkF0/nbV2+HfAFByxe/Z4Mr7qDJgLy5pUXZJUG6gWentJ9cYz0MGx vcQMHsJChc9uQ0SoLWgdBxGGzcGUJWImIANkbgcC8fFr/qlSBOvwSaWV9SZWdZ8U6TTa Z+SA== 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=YqOXoxnEIrzX06SBIKz79hyp41wB0d9/azD/pbBGFAQ=; b=x3CuV3yOfBDJtFdxE0Pxdz6m0IAiO+udyjd2NHTbQBVaAPAofxH7Dchlyrp86bkMTA mZ3J/Z2rTtpacBcPsEPTr+Y5KLwOt12hKJfBFiNQezsGSI67+/jBLOkiKB20IWvAGXkG yWVingRKa1NJHMlNjLxJeib0wd1rQfUKp0596GcsNSYuL7ciM0xLE2sRYmISY1AzCczB r/nOHsiqrdAxW1+QC1NIYt08FW1Y8zPpObF2MWrzS37hnIO95UJ/NkFaU7kGB2dD0GaW kLthH5dQDH+xaxXocamzG20UoH8JYhSHC0SNKf8XEf7BpFWi1MV9YV/IzH1epgfx3/ie CS7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F1IVXbK4; 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 o22si10952758edv.175.2019.11.27.13.39.22; Wed, 27 Nov 2019 13:39:46 -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=F1IVXbK4; 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 S1730322AbfK0VfL (ORCPT + 99 others); Wed, 27 Nov 2019 16:35:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:35516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729557AbfK0Utt (ORCPT ); Wed, 27 Nov 2019 15:49:49 -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 C7CFE2158A; Wed, 27 Nov 2019 20:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887789; bh=oMoPkCwY6kDzGS2Li0xLQGa17DHyFG0V1ZNnzIwiQfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F1IVXbK4WslTwk3YrHfDz/0TV0oWgGGvMiwut7oyKF4WhPDuJAF0vFDvuhe4QddkS ByIexcHdFTRd0SE4JQxu9FQNbyIbBpPZIKhVhKlieV2urTtPwkkv69ADlrJ101k/YL EKHpyMYc0hlABv5ukq82DvU66ZdoJ7NHzKfy43e4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexandre Belloni , Stephen Boyd , Sasha Levin Subject: [PATCH 4.14 052/211] clk: at91: audio-pll: fix audio pmc type Date: Wed, 27 Nov 2019 21:29:45 +0100 Message-Id: <20191127203058.982189454@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@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: Alexandre Belloni [ Upstream commit 7fa75007b7d7421aea59ff2b12ab1bd65a5abfa6 ] The allocation for the audio pmc is using the size of struct clk_audio_pad instead of struct clk_audio_pmc. This works fine because the former is larger than the latter but it is safer to be correct. Fixes: ("0865805d82d4 clk: at91: add audio pll clock drivers") Signed-off-by: Alexandre Belloni Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/at91/clk-audio-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-audio-pll.c b/drivers/clk/at91/clk-audio-pll.c index da7bafcfbe706..b3eaf654fac98 100644 --- a/drivers/clk/at91/clk-audio-pll.c +++ b/drivers/clk/at91/clk-audio-pll.c @@ -509,7 +509,7 @@ static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) static void __init of_sama5d2_clk_audio_pll_pmc_setup(struct device_node *np) { - struct clk_audio_pad *apmc_ck; + struct clk_audio_pmc *apmc_ck; struct clk_init_data init = {}; apmc_ck = kzalloc(sizeof(*apmc_ck), GFP_KERNEL); -- 2.20.1