mfd: ab8500-debugfs: sizeof() mismatch bugfix
authorAshok G <ashok.g@stericsson.com>
Tue, 28 Feb 2012 04:51:00 +0000 (10:21 +0530)
committerLee Jones <lee.jones@linaro.org>
Mon, 4 Feb 2013 08:33:26 +0000 (08:33 +0000)
Simple pointer error fix to obtain the expected sizeof() result.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ashok G <ashok.g@stericsson.com>
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
drivers/mfd/ab8500-debugfs.c

index cbebbd7e7b409bcca207f865f997e13359802b88..b3fb65354567b7c9427445f6bee5ec6131efd060 100644 (file)
@@ -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;
 
This page took 0.025282 seconds and 5 git commands to generate.