diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-06-14 10:41:04 +0100 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-06-14 15:24:35 -0400 |
commit | bdba34d3979d59cfcff6097f2f94d4fa1248be76 (patch) | |
tree | 42fc5fbfb3dd7f9d2f5dd746963fff51551adcd4 /CREDITS | |
parent | 5983da7c49e7324808c5ebef8b03428ddcdf9e9a (diff) |
Fix NULL-dereference introduced by OMAP4 PMU patch
This patch fixes a NULL-dereference introduced by commit 457520e
("arm: pmu: support pmu/perf on OMAP4").
Some platforms (e.g. vexpress) neither need nor have an instance of
arm_pmu_platdata (plat). Perf support on these platforms was broken by
the original commit.
This patch adds a check for plat before dereferencing any fields.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Avik Sil <avik.sil@linaro.org>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions