浏览代码

mfd: ab8500-debugfs: sizeof() mismatch bugfix

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>
Ashok G 13 年之前
父节点
当前提交
70bad04f2a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/ab8500-debugfs.c

+ 1 - 1
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;