]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: perf: fix unassigned cpu_pmu->plat_device when probing PMU PPIs
authorShannon Zhao <shannon.zhao@linaro.org>
Mon, 29 Jun 2015 08:02:40 +0000 (09:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:52 +0000 (09:07 -0700)
commit4925e8b95623c85ed10fbf7263f9f2a4a6eb90ac
tree356e677991c8a954b6785b14014ab3cbee8df0f0
parentf223ee716ec995fd863e5ba1006150c3ea03defc
arm64: perf: fix unassigned cpu_pmu->plat_device when probing PMU PPIs

commit b265da5a45ce60bd3d7505cc0eaa6cfba50946a1 upstream.

Commit d795ef9aa831 ("arm64: perf: don't warn about missing
interrupt-affinity property for PPIs") added a check for PPIs so that
we avoid parsing the interrupt-affinity property for these naturally
affine interrupts.

Unfortunately, this check can trigger an early (successful) return and
we will not assign the value of cpu_pmu->plat_device. This patch fixes
the issue.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/perf_event.c