aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorIlia Lin <[email protected]>2018-06-17 19:58:42 +0000
committerRafael J. Wysocki <[email protected]>2018-06-19 08:35:59 +0000
commitee3dbcf963c17775417d2fdf74e60f0c1b563dda (patch)
tree369c3cf01992985d9e6d114fa13ef26f9691de6f /tools/perf/scripts/python/compaction-times.py
parentLinux 4.18-rc1 (diff)
downloadkernel-ee3dbcf963c17775417d2fdf74e60f0c1b563dda.tar.gz
kernel-ee3dbcf963c17775417d2fdf74e60f0c1b563dda.zip
cpufreq: kryo: Fix possible error code dereference
In event of error returned by the nvmem_cell_read() non-pointer value may be dereferenced. Fix this with error handling. Additionally free the allocated speedbin buffer, as per the API. Fixes: 9ce36edd1a52 (cpufreq: Add Kryo CPU scaling driver) Signed-off-by: Ilia Lin <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions