diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/oprofile/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c index de72902ad0c..6f833358cd0 100644 --- a/arch/arm/oprofile/common.c +++ b/arch/arm/oprofile/common.c | |||
@@ -140,7 +140,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
140 | if (ret < 0) | 140 | if (ret < 0) |
141 | return ret; | 141 | return ret; |
142 | 142 | ||
143 | counter_config = kmalloc(sizeof(struct op_counter_config) * spec->num_counters, | 143 | counter_config = kcalloc(spec->num_counters, sizeof(struct op_counter_config), |
144 | GFP_KERNEL); | 144 | GFP_KERNEL); |
145 | if (!counter_config) | 145 | if (!counter_config) |
146 | return -ENOMEM; | 146 | return -ENOMEM; |