From patchwork Tue Jan 15 12:56:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1977911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id B53B43FE1B for ; Tue, 15 Jan 2013 13:12:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tv6E4-0002uj-39; Tue, 15 Jan 2013 13:06:51 +0000 Received: from mail-wi0-f176.google.com ([209.85.212.176]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tv64i-0006jf-7P for linux-arm-kernel@lists.infradead.org; Tue, 15 Jan 2013 12:57:10 +0000 Received: by mail-wi0-f176.google.com with SMTP id hm6so2273216wib.3 for ; Tue, 15 Jan 2013 04:57:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=64klrfnrKpBLWyidJxRqo07l1XtQJuA1QCN5sa/PYzM=; b=odY6RdhXl92sCtUpO8ZKIjTnvySmiynU57Cma48NpV4TYklYoNsB78YytzUY8Sm9Db mNqRzy2GOOJvWKCWjDkrotmNJOL/JUc+Hq/N4e9Nu9vO/1tkskqA3IudyjkHOh091jAU m7rJEScROENoAP6HbR7b6ydEgMmlMJeMu3ThPoo3tql6nd3s+8E+92DdFk5pZcZvEYPt 8Wt9X101rtLkFBQxb8BGdvqH/iNTGeGrtNJ3eQw1hRmIK0oUSVyTDE+mwLHp+x19kuON Mgv/XtRHHfMVd6AwtHiZJvIngvJqlWwmBSbIHaTW97eFdnliDxbqiyb/PDccHd7gnZVm cEIg== X-Received: by 10.194.20.231 with SMTP id q7mr141255805wje.44.1358254626203; Tue, 15 Jan 2013 04:57:06 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id eo10sm3672833wib.9.2013.01.15.04.57.04 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:57:05 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 24/26] mfd: ab8500-debugfs: sizeof() mismatch bugfix Date: Tue, 15 Jan 2013 12:56:04 +0000 Message-Id: <1358254566-12419-25-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> References: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQls13Bem5eTwzagHKUDHYIezFXooGhd/DAhI7HBH5Lj3xMxvbzwbP3ozW1Xi9a1DVV/CudZ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130115_075709_070683_966F9573 X-CRM114-Status: GOOD ( 11.77 ) 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 [209.85.212.176 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Ashok G , Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, sameo@linux.intel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Ashok G Simple pointer error fix to obtain the expected sizeof() result. Signed-off-by: Lee Jones Signed-off-by: Ashok G Reviewed-by: Mattias WALLIN --- drivers/mfd/ab8500-debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 8e405af..4147984 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -1565,7 +1565,7 @@ static int __devinit ab8500_debug_probe(struct platform_device *plf) ab8500 = dev_get_drvdata(plf->dev.parent); num_irqs = ab8500->mask_size; - irq_count = kzalloc(sizeof(irq_count)*num_irqs, GFP_KERNEL); + irq_count = kzalloc(sizeof(*irq_count)*num_irqs, GFP_KERNEL); if (!irq_count) return -ENOMEM;