summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-03-21 11:07:15 +0000
committerKyle Yan <kyan@codeaurora.org>2016-04-27 19:05:06 -0700
commit4cd646a44ae3aa78b55bd5e2bce2e5d7f6f53b0d (patch)
treecf6ef15c3d9f87a70ebbdcdad4291be603bb56cf /tools/perf/scripts/python/bin
parent8eb64466739b7ae62aa856e72fd4723c358b5544 (diff)
drivers/perf: arm_pmu: avoid NULL dereference when not using devicetree
Commit c6b90653f1f7 ("drivers/perf: arm_pmu: make info messages more verbose") breaks booting on systems where the PMU is probed without devicetree (e.g by inspecting the MIDR of the current CPU). In this case, pdev->dev.of_node is NULL and we shouldn't try to access its ->fullname field when printing probe error messages. This patch fixes the probing code to use of_node_full_name, which safely handles NULL nodes and removes the "Error %i" part of the string, since it's not terribly useful. Reported-by: Guenter Roeck <private@roeck-us.net> Signed-off-by: Will Deacon <will.deacon@arm.com> Git-commit: 357b565d5d52b2dc2a51390eb8f887a9caa8597f Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git CRs-Fixed: 1008368 Change-Id: I446e06972d714f7a405ff8c264d7851958e69484 Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions