kernel_samsung_a53x/drivers/gpu/drm/amd/display/dc
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
..
basics
bios
calcs
clk_mgr drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[] 2024-11-23 23:20:57 +01:00
core drm/amd/display: Check null pointers before using dc->clk_mgr 2024-11-23 23:21:40 +01:00
dce
dce60
dce80
dce100
dce110
dce112
dce120
dcn10 drm/amd/display: Handle Y carry-over in VCP X.Y calculation 2024-11-19 14:19:01 +01:00
dcn20 drm/amd/display: Skip wbscl_set_scaler_filter if filter is null 2024-11-23 23:20:58 +01:00
dcn21
dcn30 Revert "drm/amd/display: Validate hw_points_num before using it" 2024-11-23 23:20:50 +01:00
dml
dsc
gpio drm/amd/display: Fix Coverity INTEGER_OVERFLOW within dal_gpio_service_create 2024-11-23 23:20:57 +01:00
hdcp drm/amd/display: Check msg_id before processing transcation 2024-11-23 23:20:57 +01:00
inc
irq drm/amd/display: Check pipe offset before setting vblank 2024-11-19 14:19:40 +01:00
virtual
dc.h
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c
dc_dmub_srv.h
dc_dp_types.h
dc_dsc.h
dc_helper.c
dc_hw_types.h
dc_link.h
dc_stream.h
dc_types.h
dm_cp_psp.h
dm_event_log.h
dm_helpers.h
dm_pp_smu.h
dm_services.h
dm_services_types.h
irq_types.h
Makefile
os_types.h