summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-06-28 13:38:25 +0300
committerThierry Reding <treding@nvidia.com>2016-06-30 13:22:22 +0300
commit718a2426e82076e4eddc2a041c8e944c9f9b3e61 (patch)
treee4947e3561879bdf152a40fa5436ecea900620d6 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent11131895cd1ba1cf58a87c6acb574cbeec5818af (diff)
downloadlinux-718a2426e82076e4eddc2a041c8e944c9f9b3e61.tar.xz
soc/tegra: pmc: Don't populate SoC data until register space is mapped
The public functions exported by the PMC driver use the presence of the SoC data pointer to determine if the PMC device is configured and the registers can be accessed. However, the SoC data is populated before the PMC register space is mapped and this opens a window where the SoC data pointer is valid but the register space has not yet been mapped which could lead to a crash. Furthermore, if the mapping of the PMC register space fails, then the SoC data pointer is not cleared and so would expose a larger window where a crash could occur. Fix this by initialising the SoC data pointer after the PMC register space has been mapped. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions