Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp734323ybc; Sat, 16 Nov 2019 07:46:39 -0800 (PST) X-Google-Smtp-Source: APXvYqw24tAdKrl8QldlJXfm0quaeOYNbM/RytBAGf20Tv2mnW55ClMUmpbNCwGBJjJ3mBMBn20q X-Received: by 2002:a17:906:d71:: with SMTP id s17mr10647688ejh.312.1573919198881; Sat, 16 Nov 2019 07:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919198; cv=none; d=google.com; s=arc-20160816; b=gmhsWeI6u3g4A9Y0n5SxalgBAHKZ4O3xEXkapJAL7LJGU/6xTc02aY4k8fojghIbCx 2JCAlgQ0GBYRslJ/laTE9z6Jkx0RMqsxTfKgtot3P94/nMtz4lfm0g8aSHwNAkvNlWa4 M4auLyns3+B0yuaTeGU8+pD/qegA3ybOvA0/aHSyUTmLOkcIemo9+0r91lEF5OedC40o JlM7mkefB8RLLQYIwEewyKhEFebEzdEVVt68SGUwFGnnaipOHuIjcEeCBUlBZMhcBcHV 0FU1EiiXpIWTxHrPel3zt+ZQORSvZ4iyF5+4OQeYF/3wJ8pvyR0feoHGapLThLkQuvn3 nUyg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YqOXoxnEIrzX06SBIKz79hyp41wB0d9/azD/pbBGFAQ=; b=vsKZK0hqthX5ixgOmH+lZFB01SM6nH/ystfglxoUEXaoftKERPGLA38Xs2u9DFQ5rG +liXZfptxJwnuG1L/GpSmQm0Vp1ern97iu5eAziX3aGcnWarKVhVRrhtQrcK3KsWmUR+ vjKJLpSmpwNFbGIYYVr6B6437+WoxSSTtqNgEcg9zCQpnj00Ss/XOFnB9ms+1UGFExia 59W/5nilPx4xY8V/3hVPKbwaVKUCR/UoMfMH2VS9QWJ6OTtU3l6ZpH8SivIH2UoQzwsM OBdN1/tUxVKK8SecJTxmqlGH5TQillWaUhr5tflSeb0/QaY6Kj4WEBdaH4UKBVqdC+Ov 6dAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dv83CmN9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si7877028ejr.168.2019.11.16.07.46.14; Sat, 16 Nov 2019 07:46: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=Dv83CmN9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbfKPPm0 (ORCPT + 99 others); Sat, 16 Nov 2019 10:42:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:45818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728250AbfKPPmR (ORCPT ); Sat, 16 Nov 2019 10:42:17 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CFC742072D; Sat, 16 Nov 2019 15:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918937; bh=oMoPkCwY6kDzGS2Li0xLQGa17DHyFG0V1ZNnzIwiQfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dv83CmN9ldzw9I5s74oxVIDcAs/dPr+o8r18WGlHHiodN5gr3lNWMPz02Fo4wdenY 1A95pUWX+q9CW6afd5ptVjP//nVrpJOVb660VZCBps8d5j/Warvidey8WxdapT7Wb8 +mHNeUAhgQrAi23EnOCWQZ50I3Ep7pKnulw8odc8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alexandre Belloni , Stephen Boyd , Sasha Levin , linux-clk@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 061/237] clk: at91: audio-pll: fix audio pmc type Date: Sat, 16 Nov 2019 10:38:16 -0500 Message-Id: <20191116154113.7417-61-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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