diff options
author | Will Deacon <will.deacon@arm.com> | 2011-12-02 18:16:01 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-06 12:48:01 +0000 |
commit | 6bd054096dce061560cee0e016e292e588dc438f (patch) | |
tree | f24116c9e5804abc2bd2ce95d09773b7a578ee69 /COPYING | |
parent | de66a979012dbc66b1ec0125795a3f79ee667b8a (diff) |
ARM: 7185/1: perf: don't assign platform_device on unsupported CPUs
In the unlikely case that a platform registers a PMU platform_device
when running on a CPU that is unsupported by perf, we will encounter a
NULL dereference when trying to assign the platform_device to the
cpu_pmu structure.
This patch checks that the CPU is supported by perf before assigning
the platform_device.
Reported-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions