summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>2024-07-03 00:24:56 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-07-04 14:35:50 +0300
commitaaa18ff54b97706b84306b6613630262706b1f6b (patch)
tree6cad367fffe0d264805581774e41ecf76411fcfd /tools/perf/scripts/python/export-to-sqlite.py
parent22a40d14b572deb80c0648557f4bd502d7e83826 (diff)
downloadlinux-aaa18ff54b97706b84306b6613630262706b1f6b.tar.xz
thermal: gov_power_allocator: Return early in manage if trip_max is NULL
Commit da781936e7c3 ("thermal: gov_power_allocator: Allow binding without trip points") allowed the governor to bind even when trip_max is NULL. This allows a NULL pointer dereference to happen in the manage callback. Add an early return to prevent it, since the governor is expected to not do anything in this case. Fixes: da781936e7c3 ("thermal: gov_power_allocator: Allow binding without trip points") Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Link: https://patch.msgid.link/20240702-power-allocator-null-trip-max-v1-1-47a60dc55414@collabora.com Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions