Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3296831pxk; Mon, 21 Sep 2020 09:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAZD950IwuWUedhoBl88XQcr9pM1j5pkC/qeNTVdVpoWF9yijN7B2KcfC0lDA0xSOjgIUu X-Received: by 2002:a05:6402:1a48:: with SMTP id bf8mr602673edb.298.1600707535454; Mon, 21 Sep 2020 09:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707535; cv=none; d=google.com; s=arc-20160816; b=WSCHnVMgrMdAwj3EECYk8BUkWpnrsyk7dJufd+4LPQS6WzM+yTOKbQcp3HJMHXGwxu U6vXIrTKGxco7kBn5P7gmRf68XWi5JCqFtkPfao2y0r6Ak/2/2NjEpCrgH8jEYW1fG3T PusNUqpDSL9jwDl/zKEyWMvskUn6YNTrF9PF1a2LrwiH0Do6qZh08NR6nthAbX5PH+DI E+NF8LOz6O6KPc5TsFS0vIVp8IZ57y9L10okPIim1eLFQGlUVUykKeBbFFf1Kqf18A8G YnqBfDa6V9Y/HlJ4jFqv1ujiHFy6wQou0GlqJoqBBHP3WWx/QibFSw4xwy2UeQsCj2NH fZmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JaYiwwTsXVK22me/HyXqKX597A4z52tDzXjng+8/1Bo=; b=EZ0JKDmavdbboaNRH5GraaZOzKqZMRspJbaoqLBEJl4dDgW1nXT3tcWtxjO74oGm5W NJEIegajEbkQpjFapK+3+mFIl9HXaFpW9+hMdqEldppmHB73P7XbKNLGXBahJU1FPDMl WhpFB594FLGZCFv6adJoOfIAU+6oDubRhtX8DwebmkcaiONIciTnAnnwqDE2AqqD7GPl WzKnBzNBNAQWMQ96wlU3kcr+167XCE08UWNzH7cqf/Ev3nMc15k117C53sW/RkYs40BO 9fyPMd/Jy75TU1E8OiruqY5sRJ24WSQcpKkoGIuiBymjzR9WYn2BJNFh/Q6g0uKSAIaH KMUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Zgxnr2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si8273150ejw.682.2020.09.21.09.58.31; Mon, 21 Sep 2020 09:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Zgxnr2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730145AbgIUQ5Y (ORCPT + 99 others); Mon, 21 Sep 2020 12:57:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:49116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729667AbgIUQoE (ORCPT ); Mon, 21 Sep 2020 12:44:04 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 57D62235F9; Mon, 21 Sep 2020 16:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706643; bh=wt31Z0JEQyepmi32aURY1zh2BUPEpENmefglZNnu+4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Zgxnr2vCugCGlb1F8x9jSxC4QlvazCe+sVHUfhiJkvymt1ff6zkREf0PDFEszTmX rEko2kBKzI4cbxMM0lqeDYj1HCWU7VXDz/y8joAtOBITnaGNGC9A4SUH0Wc0dkmP9O LSeLOsmCitr58tpR10UuIXsaO9gXQXmM3LHwcasM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , David Lechner , Stephen Boyd , Sasha Levin Subject: [PATCH 5.8 036/118] clk: davinci: Use the correct size when allocating memory Date: Mon, 21 Sep 2020 18:27:28 +0200 Message-Id: <20200921162037.983085125@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 3dabfa2bda48dab717986609762ce2a49335eb99 ] 'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a small over-allocation. Fixes: 2d1726915159 ("clk: davinci: New driver for davinci PLL clocks") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20200809144959.747986-1-christophe.jaillet@wanadoo.fr Reviewed-by: David Lechner Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/davinci/pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/davinci/pll.c b/drivers/clk/davinci/pll.c index 8a23d5dfd1f8d..5f063e1be4b14 100644 --- a/drivers/clk/davinci/pll.c +++ b/drivers/clk/davinci/pll.c @@ -491,7 +491,7 @@ struct clk *davinci_pll_clk_register(struct device *dev, parent_name = postdiv_name; } - pllen = kzalloc(sizeof(*pllout), GFP_KERNEL); + pllen = kzalloc(sizeof(*pllen), GFP_KERNEL); if (!pllen) { ret = -ENOMEM; goto err_unregister_postdiv; -- 2.25.1