Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988417ybc; Wed, 27 Nov 2019 12:59:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzDSt8gOgI7d8Bc5UlX1nQFtpB/zIuf37BVosp1K1G9a4IqAICliw4EXd1+81teblBT5gMj X-Received: by 2002:a17:907:4300:: with SMTP id oa24mr50776895ejb.8.1574888378327; Wed, 27 Nov 2019 12:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888378; cv=none; d=google.com; s=arc-20160816; b=vR6zzYfgYBu1+2V3cgdTTtZtoxHjnVjrhIV71PtvOq65ZApxlnMGWuL9PxSC1VPlPr ijuygxVcg6w4YrQQB+jtfus5qHDL57qerAKCIL684iNomI4NUqRp2TTOnBpwGpW3te8W 1EpUJHEl02ish3R9cOg/eOKaT1lkJsp8P9rNN2xrHN9rMb0LHIzYCjmN1NeW0NC9GMw6 MHGqBdPUD5Q4GhHDdyt4a1o0FCU14cJjY2vcYdw3BQuJtXRL5CWsPhudT0HR6BPxfxRW WDrNhpo/FjSSfI86F/jwHcPDaNYXzy4JVyi+Z4sGlON5mNVJbfO159Riyu3X1zm3DX3N GTFw== 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=dwvX1ukZBC5oA9HeGrUdU1KwgKf1fVuI0Ys9lHQ9mKw+athlhnZX/IVJ+WFk/A9Aag P+j6tDrJ6oTplF/g9nn9a5QCUtEFnAxWVEjeYiXcf/+p1pQlf6/h/3ZRauP/dcHYeFcE xoJObZdQcsYuz6gESox9CQs+Ct4T044+Wjz/ZeDL3ZAUipKS8EMNQnrVzURZxylsU9Qk wJ1nq5gz7EKaDsn3EJsPMdqhxV/2GG+pkgYTsPN3hnozfcAfxBjcdEtyyt2WL8rKsYiq l9W3DdoaPlpCtJP9KjqA7LOnfylSD9tESImFcOJEAiXS58VfF793CGdncaASm9d19JMa Du0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tjn2RyHO; 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 l24si10730706edw.352.2019.11.27.12.59.15; Wed, 27 Nov 2019 12:59:38 -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=tjn2RyHO; 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 S1729741AbfK0U6Y (ORCPT + 99 others); Wed, 27 Nov 2019 15:58:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:49608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731305AbfK0U6V (ORCPT ); Wed, 27 Nov 2019 15:58:21 -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 4722821556; Wed, 27 Nov 2019 20:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888300; bh=oMoPkCwY6kDzGS2Li0xLQGa17DHyFG0V1ZNnzIwiQfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tjn2RyHOQDy5V+W6F5sht/C2jGAwpHMJIjzZmhTr/VS+CCJRhiFbn/aRMCKiTWocB ITLZBWJNf/UYzWBaHzhJazw8hxxt9ntaQ+PlL52ko4WRczVHZ80GVP+6JQlZtbDosZ e3TG95iPWOur0MxjqfKHgwXqRPLGCkUAepwrSfAw= 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.19 080/306] clk: at91: audio-pll: fix audio pmc type Date: Wed, 27 Nov 2019 21:28:50 +0100 Message-Id: <20191127203120.757725986@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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