提交 70bad04f 编写于 作者: A Ashok G 提交者: Lee Jones

mfd: ab8500-debugfs: sizeof() mismatch bugfix

Simple pointer error fix to obtain the expected sizeof() result.
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NAshok G <ashok.g@stericsson.com>
Reviewed-by: NMattias WALLIN <mattias.wallin@stericsson.com>
上级 5f8aaef4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册