aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJon Hunter <[email protected]>2016-02-11 11:25:59 +0000
committerRafael J. Wysocki <[email protected]>2016-02-11 22:05:38 +0100
commit78ecc56247f0ec2bc0cf6f2f2af69e98d99767bc (patch)
treec509d3c40a6cf6d75c7f4b34d62b2875fdf617e1 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent6a0712f6f199e737aa5913d28ec4bd3a25de9660 (diff)
PM / OPP: Fix NULL pointer dereference crash when disabling OPPs
Commit 7d34d56ef334 (PM / OPP: Disable OPPs that aren't supported by the regulator) causes a crash to happen on Tegra124 Jetson TK1 when using the DFLL clock source for the CPU. The DFLL manages the voltage itself and so there is no regulator specified for the OPPs and so we get a crash when we try to dereference the regulator pointer. Fix this by checking to see if the regulator IS_ERR_OR_NULL before dereferencing it. Fixes: 7d34d56ef334 (PM / OPP: Disable OPPs that aren't supported by the regulator) Signed-off-by: Jon Hunter <[email protected]> Reported-by: Bartlomiej Zolnierkiewicz <[email protected]> Acked-by: Viresh Kumar <[email protected]> [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions