aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2024-11-25 11:24:46 +0000
committerRafael J. Wysocki <[email protected]>2024-11-26 12:27:56 +0000
commitac1f43c03fc91eee53cc95683245350d4d87781e (patch)
tree0cc6622c102c6f6828ecf545949aafec00af435f /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge tag 'thermal-6.13-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-ac1f43c03fc91eee53cc95683245350d4d87781e.tar.gz
kernel-ac1f43c03fc91eee53cc95683245350d4d87781e.zip
thermal: gov_power_allocator: Add missing NULL pointer check
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions