Message ID | 1390819837-32196-1-git-send-email-lorenzo.pieralisi@arm.com |
---|---|
State | Accepted |
Commit | 7c762036e2480bfd43e62ed872b82e372fe92474 |
Headers | show
Return-Path: <patchwork-forward+bncBCXK7HEV3YBRBRPUTCLQKGQE4YFY4TY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 356D02130F for <linaro@patches.linaro.org>; Mon, 27 Jan 2014 10:51:50 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id m10sf11179676vbh.4 for <linaro@patches.linaro.org>; Mon, 27 Jan 2014 02:51:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=sFAGgXKJacZI7hWi+8vsMm44ero3xQJnkn3vUWFIeZ0=; b=YoIZDktiFVWPER7i7+EgZ7SOJk8du/3YJqgUS+pZr3IGDk4XzywXAw5pe+hqH5K9O2 yO6snnCeSG9cmzzEySYkfBSd6ZzUiGEF1xpWVArOrNeEc1MwXX3eyUjQfs8CW0qolWj+ ghR7z54U8xm+WlBzvmqWoaInfYO83O79qqpc3KRgUBfXbCyHaDPKYUcCirZMjY+9Jf96 b94LkzGo6zszTPGmWSWFKLKZOY1/MC+9M1YCS3Sh10y2j3GsOszHeogF8SvAx9vcHkn2 GacmagBP9PHvl6jEkkQG2hcB2govEbf4f9IDWJtTGTD59qTXjWu1Kmr82sxG54y841+1 i9XQ== X-Gm-Message-State: ALoCoQm2rNF3F06vF6Hnre5aUwdrl30P5OXybKDwg7H6LArMGWaodBg4tUI3hiuSaIyYEJU+3WRA X-Received: by 10.236.102.40 with SMTP id c28mr9211061yhg.11.1390819909226; Mon, 27 Jan 2014 02:51:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.231 with SMTP id q94ls1674705qga.45.gmail; Mon, 27 Jan 2014 02:51:49 -0800 (PST) X-Received: by 10.59.0.193 with SMTP id ba1mr15324030ved.12.1390819909110; Mon, 27 Jan 2014 02:51:49 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id wm4si4991523vcb.4.2014.01.27.02.51.48 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 02:51:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ia6so3285557vcb.38 for <patchwork-forward@linaro.org>; Mon, 27 Jan 2014 02:51:48 -0800 (PST) X-Received: by 10.58.208.130 with SMTP id me2mr15557518vec.13.1390819908773; Mon, 27 Jan 2014 02:51:48 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp120385vcz; Mon, 27 Jan 2014 02:51:48 -0800 (PST) X-Received: by 10.204.179.135 with SMTP id bq7mr22523491bkb.5.1390819907773; Mon, 27 Jan 2014 02:51:47 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id nl4si13851575bkb.67.2014.01.27.02.51.47 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2014 02:51:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7jmj-00069w-6W; Mon, 27 Jan 2014 10:51:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7jmg-0000EZ-VU; Mon, 27 Jan 2014 10:51:18 +0000 Received: from service87.mimecast.com ([91.220.42.44]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7jmc-0000Ds-Ql for linux-arm-kernel@lists.infradead.org; Mon, 27 Jan 2014 10:51:15 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 27 Jan 2014 10:50:48 +0000 Received: from e102568-lin.cambridge.arm.com ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Jan 2014 10:50:46 +0000 From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] drivers: bus: fix CCI driver kcalloc call parameters swap Date: Mon, 27 Jan 2014 10:50:37 +0000 Message-Id: <1390819837-32196-1-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 1.8.2.2 X-OriginalArrivalTime: 27 Jan 2014 10:50:46.0576 (UTC) FILETIME=[A242EB00:01CF1B4D] X-MC-Unique: 114012710504800401 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140127_055115_079316_5F6CAAF0 X-CRM114-Status: GOOD ( 11.19 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [91.220.42.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Olof Johansson <olof@lixom.net>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Kevin Hilman <khilman@linaro.org>, Nicolas Pitre <nico@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lorenzo.pieralisi@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index b6739cb..962fd35 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -979,7 +979,7 @@ static int cci_probe(void) nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite; - ports = kcalloc(sizeof(*ports), nb_cci_ports, GFP_KERNEL); + ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL); if (!ports) return -ENOMEM;
This patch fixes a bug/typo in the CCI driver kcalloc usage that inadvertently swapped the parameters order in the kcalloc call and went unnoticed. Reported-by: Xia Feng <xiafeng@allwinnertech.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> --- drivers/bus/arm-cci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)