aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/oprofile/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c
index c3652f73fed4..d660cb8dab36 100644
--- a/arch/arm/oprofile/common.c
+++ b/arch/arm/oprofile/common.c
@@ -351,6 +351,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
351{ 351{
352 int cpu, ret = 0; 352 int cpu, ret = 0;
353 353
354 memset(&perf_events, 0, sizeof(perf_events));
355
354 perf_num_counters = armpmu_get_max_events(); 356 perf_num_counters = armpmu_get_max_events();
355 357
356 counter_config = kcalloc(perf_num_counters, 358 counter_config = kcalloc(perf_num_counters,