aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-10-25 17:33:27 +0100
committerRafael J. Wysocki <[email protected]>2016-10-27 13:00:32 +0200
commita1fee00dc95644e0590b4f1a3755c9f6b1243b3a (patch)
tree45cf5b081069f6cba6cde94dac3500face44b25e /tools/perf/scripts/python/call-graph-from-postgresql.py
parent411bf2a8db76d7ed6f710df77121e5113ee8fe64 (diff)
PM / Domains: check for negative return from of_count_phandle_with_args()
The return from of_count_phandle_with_args can be negative, so we should avoid kcalloc of a negative count of genpd_power_stat structs by sanity checking if count is zero or less. Signed-off-by: Colin Ian King <[email protected]> Acked-by: Kevin Hilman <[email protected]> Acked-by: Pavel Machek <[email protected]> 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