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: 14073 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7016623E2E for ; Tue, 15 Jan 2013 12:57:08 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by fiordland.canonical.com (Postfix) with ESMTP id 26D5FA1931C for ; Tue, 15 Jan 2013 12:57:08 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id fl15so55370vcb.32 for ; Tue, 15 Jan 2013 04:57:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=64klrfnrKpBLWyidJxRqo07l1XtQJuA1QCN5sa/PYzM=; b=aI2cazPdR5XTciL2Gg6oXoaH6w+0aPOu20YHoSXUYzZShlOuKKmE3M7ESqZ6NaVtlu iJQ9UsbSHyqEkVHhr/WFYNhrQcGLirUYAOJPCYU0Z+HiUVxaX2GoYfZDKWLDyBGVRviE 0xTH+YgESYtkcBb8kXRiOcGGo7NDz7Y6m5YwsaqtLLmkmZF93hm+TRN6vM38AgDhQdI9 WLAxpE6zT5OXrPUpJf5+wdOhJn9qtw6EbTm8kwIawHv/xDqlmlBwcKix3dC0Wthw41Hz 3JmuYH6/FClzeFjy8gphuXpU+LBH9FT9cLM/55eEgniCHMp0ExMlfHgZtQWyYvpD+uwj aaww== X-Received: by 10.52.18.207 with SMTP id y15mr91190202vdd.8.1358254627673; Tue, 15 Jan 2013 04:57:07 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp110633veb; Tue, 15 Jan 2013 04:57:07 -0800 (PST) X-Received: by 10.180.78.137 with SMTP id b9mr3521753wix.30.1358254626577; Tue, 15 Jan 2013 04:57:06 -0800 (PST) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by mx.google.com with ESMTPS id u19si27421740wjw.47.2013.01.15.04.57.06 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:57:06 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.51 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.51 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f51.google.com with SMTP id gg4so41087wgb.6 for ; Tue, 15 Jan 2013 04:57:06 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, sameo@linux.intel.com, Ashok G , Lee Jones 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: ALoCoQlZxvkeUrj/7MMcFtXrwkSbyXpZizTQl6om3+Boa/OeMTd+Umfq4sn4KOcAcWRRrciFwc62 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;