diff options
author | Will Deacon <will.deacon@arm.com> | 2016-03-21 14:07:15 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-03-21 14:36:17 +0300 |
commit | 357b565d5d52b2dc2a51390eb8f887a9caa8597f (patch) | |
tree | 0720017fa61ca0f3e6a152d30d82b4c2a1914fb5 /Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt | |
parent | fe638401a091f4473e9e30942ea3cecc0c0b2b94 (diff) | |
download | linux-357b565d5d52b2dc2a51390eb8f887a9caa8597f.tar.xz |
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>
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt')
0 files changed, 0 insertions, 0 deletions