sst-linux/drivers/gpu/drm/amd/display/dc
Alex Hung 04805efe86 drm/amd/display: Check denominator crb_pipes before used
commit ea79068d4073bf303f8203f2625af7d9185a1bc6 upstream.

[WHAT & HOW]
A denominator cannot be 0, and is checked before used.

This fixes 2 DIVIDE_BY_ZERO issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Cliff Liu <donghua.liu@windriver.com>
Signed-off-by: He Zhe <Zhe.He@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-07 10:05:45 +02:00
..
basics
bios drm/amd/display: fixed integer types and null check locations 2025-03-07 16:56:50 +01:00
clk_mgr drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
core drm/amd/display: Assign normalized_pix_clk when color depth = 14 2025-03-28 21:58:56 +01:00
dce drm/amd/display: Use HW lock mgr for PSR1 when only one eDP 2025-03-28 21:59:01 +01:00
dce60
dce80
dce100
dce110
dce112
dce120
dcn10
dcn20
dcn21 drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create' 2025-01-23 17:17:16 +01:00
dcn30 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dcn31 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dcn32 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dcn201
dcn301
dcn302
dcn303
dcn314 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dcn315 drm/amd/display: Check denominator crb_pipes before used 2025-04-07 10:05:45 +02:00
dcn316 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dcn321 drm/amd/display: Add NULL pointer check for kzalloc 2025-02-21 13:50:12 +01:00
dml
dsc
gpio
hdcp
inc
irq
link
virtual
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c
dc_dmub_srv.h
dc_dp_types.h
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c
dc_hw_types.h
dc_link.h
dc_stat.h
dc_stream.h
dc_trace.h
dc_types.h
dc.h drm/amd/display: increase MAX_SURFACES to the value supported by hw 2025-01-17 13:34:42 +01:00
dm_cp_psp.h
dm_event_log.h
dm_helpers.h
dm_pp_smu.h
dm_services_types.h
dm_services.h
irq_types.h
Makefile
os_types.h