kernel_samsung_a53x/drivers/gpu/drm/amd/display
Alex Hung 831ba4bca0 drm/amd/display: Check null pointers before using dc->clk_mgr
[ Upstream commit 95d9e0803e51d5a24276b7643b244c7477daf463 ]

[WHY & HOW]
dc->clk_mgr is null checked previously in the same function, indicating
it might be null.

Passing "dc" to "dc->hwss.apply_idle_power_optimizations", which
dereferences null "dc->clk_mgr". (The function pointer resolves to
"dcn35_apply_idle_power_optimizations".)

This fixes 1 FORWARD_NULL issue reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:40 +01:00
..
amdgpu_dm drm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination 2024-11-23 23:21:29 +01:00
dc drm/amd/display: Check null pointers before using dc->clk_mgr 2024-11-23 23:21:40 +01:00
dmub drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox 2024-11-18 11:43:32 +01:00
include Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
modules drm/amd/display: Round calculated vtotal 2024-11-23 23:21:30 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
TODO Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00