arc: fix use of uninitialized arc_pmu
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 13 Jun 2015 23:09:06 +0000 (02:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:03 +0000 (10:10 -0700)
commit16e860b30b2c3703d92a6cd701a6e602d897f481
treef2f0be1055e19a71667e42b8272fa909b5286c57
parent3e43ff498fb1a9f8a58c7746c207b8ffd9a9a87d
arc: fix use of uninitialized arc_pmu

commit 7002f77541f877a5590615ceb3da32b114f14b62 upstream.

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"
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/perf_event.c