From: Ashok G Date: Tue, 28 Feb 2012 04:51:00 +0000 (+0530) Subject: mfd: ab8500-debugfs: sizeof() mismatch bugfix X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=70bad04f2a30be002d8f4701d98d14259a86391b;p=deliverable%2Flinux.git mfd: ab8500-debugfs: sizeof() mismatch bugfix Simple pointer error fix to obtain the expected sizeof() result. Signed-off-by: Lee Jones Signed-off-by: Ashok G Reviewed-by: Mattias WALLIN --- diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index cbebbd7e7b40..b3fb65354567 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -1567,7 +1567,7 @@ static int 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;