diff options
author | Will Deacon <will.deacon@arm.com> | 2011-11-22 18:01:46 +0000 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-12-15 09:24:27 -0500 |
commit | f8489660a18c1865ee4f4a47593fd2dcf67a4e88 (patch) | |
tree | e67d060f9cd98512a19dbd2ac217df13adb744a7 /arch/arm/mach-dove/cm-a510.c | |
parent | 6014abe68ef9c0a32e9c41434d50f56a7d65bc04 (diff) |
ARM: perf: check that we have a platform device when reserving PMU
Attempting to use a hardware counter on a platform with a supported PMU
but where the platform_device (defining the interrupts) has not been
registered results in a NULL pointer dereference.
This patch fixes the problem by checking that we actually have a platform
device registered before attempting to grab the interrupts.
Reported-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit e5a21327644adba32816f74a415114d11c57f2e9)
Diffstat (limited to 'arch/arm/mach-dove/cm-a510.c')
0 files changed, 0 insertions, 0 deletions