diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-25 14:24:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-07 20:25:46 +0300 |
commit | 72cbaf8b41f00edc2482372da3770d2d7b5d3d1e (patch) | |
tree | b4225ed28bbf85aab5b72debb2cb072808571f13 /tools/perf/scripts/python/libxed.py | |
parent | 3e8653e399e7111a3e87d534ff4533b250ae574f (diff) | |
download | linux-72cbaf8b41f00edc2482372da3770d2d7b5d3d1e.tar.xz |
thermal: gov_power_allocator: Add missing NULL pointer check
commit ac1f43c03fc91eee53cc95683245350d4d87781e upstream.
Commit 0dc23567c206 ("thermal: core: Move lists of thermal instances
to trip descriptors") overlooked the case in which the Power Allocator
governor attempts to bind to a tripless thermal zone and params->trip_max
is NULL in check_power_actors().
No power actors can be found in that case, so check_power_actors() needs
to be made return 0 then to restore its previous behavior.
Fixes: 0dc23567c206 ("thermal: core: Move lists of thermal instances to trip descriptors")
Closes: https://lore.kernel.org/linux-pm/Z0NeGF4ryCe_b5rr@sashalap/
Reported-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/2761105.mvXUDI8C0e@rjwysocki.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions