arc: fix use of uninitialized arc_pmu
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 13 Jun 2015 23:09:06 +0000 (02:09 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 19 Jun 2015 12:39:28 +0000 (18:09 +0530)
commit7002f77541f877a5590615ceb3da32b114f14b62
tree3ec6707fed5976d3f2b47cf2dcb6a8f63ceb1d21
parentb27f7391718537333383b14822311d6dad1d6eb5
arc: fix use of uninitialized arc_pmu

static arc_pmu in the arch/arc/kernel/perf_event.c is not initialized as
it's shadowed by a local variable of the same name in the
arc_pmu_device_probe.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Fixes: 03c94fcf954d "ARC: perf: make @arc_pmu static global"
CC: <stable@vger.kernel.org> # 4.1
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/perf_event.c