projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f8aaef
)
mfd: ab8500-debugfs: sizeof() mismatch bugfix
author
Ashok G
<ashok.g@stericsson.com>
Tue, 28 Feb 2012 04:51:00 +0000
(10:21 +0530)
committer
Lee 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/ab8500-debugfs.c
b/drivers/mfd/ab8500-debugfs.c
index cbebbd7e7b409bcca207f865f997e13359802b88..b3fb65354567b7c9427445f6bee5ec6131efd060 100644
(file)
--- 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;