]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2794612b9dfba0e0493700cde80d308fb44633f8
tree3ec6707fed5976d3f2b47cf2dcb6a8f63ceb1d21
parent4a05d3cef802d03b3cf36b73532059e77a9906e3
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: 7fbb472f4803 "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