linux/drivers/gpu/drm/amd/display/dc
Zhou Qingyang ebc77bcc6e drm/amd/display/dc/calcs/dce_calcs: Fix a memleak in calculate_bandwidth()
In calculate_bandwidth(), the tag free_sclk and free_yclk are reversed,
which could lead to a memory leak of yclk.

Fix this bug by changing the location of free_sclk and free_yclk.

This bug was found by a static analyzer.

Builds with 'make allyesconfig' show no new warnings,
and our static analyzer no longer warns about this code.

Fixes: 2be8989d0f ("drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap")
Signed-off-by: Zhou Qingyang <zhou1615@umn.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-25 17:52:46 -05:00
..
basics
bios drm/amd/display: Display object info table changes 2021-11-24 14:06:52 -05:00
calcs drm/amd/display/dc/calcs/dce_calcs: Fix a memleak in calculate_bandwidth() 2022-01-25 17:52:46 -05:00
clk_mgr drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21 2022-01-14 18:06:45 -05:00
core drm/amdgpu/display: use msleep rather than udelay for long delays 2022-01-25 17:50:49 -05:00
dce drm/amd/display: add hdmi disable debug check 2021-12-01 16:05:16 -05:00
dce60
dce80
dce100
dce110 drm/amd/display: change FIFO reset condition to embedded display only 2022-01-25 17:48:37 -05:00
dce112
dce120
dcn10 drm/amd/display: Fix underflow for fused display pipes case 2022-01-07 17:21:05 -05:00
dcn20 drm/amd/display: access hpo dp link encoder only through link resource 2021-12-30 08:54:45 -05:00
dcn21 drm/amd/display: Changed pipe split policy to allow for multi-display pipe split 2021-12-30 08:54:44 -05:00
dcn30 drm/amd/display: Undo ODM combine 2021-12-30 08:54:44 -05:00
dcn31 drm/amd/display: Fix for otg synchronization logic 2022-01-25 17:05:35 -05:00
dcn201 drm/amd/display: fix dereference before NULL check 2021-12-30 08:54:45 -05:00
dcn301 drm/amd/display: Correct MPC split policy for DCN301 2022-01-25 17:48:02 -05:00
dcn302 drm/amd/display: Changed pipe split policy to allow for multi-display pipe split 2021-12-30 08:54:44 -05:00
dcn303 drm/amd/display: Add reg defs for DCN303 2021-12-30 08:54:44 -05:00
dml drm/amd/display: access hpo dp link encoder only through link resource 2021-12-30 08:54:45 -05:00
dsc drm/amd/display: fixed an error related to 4:2:0/4:2:2 DSC 2021-11-24 14:06:52 -05:00
gpio
hdcp
inc drm/amd/display: Fix for otg synchronization logic 2022-01-25 17:05:35 -05:00
irq drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21 2022-01-14 18:06:45 -05:00
virtual
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: Wait for ACK for INBOX0 HW Lock 2021-11-17 16:58:11 -05:00
dc_dmub_srv.h drm/amd/display: Wait for ACK for INBOX0 HW Lock 2021-11-17 16:58:11 -05:00
dc_dp_types.h drm/amd/display: parse and check PSR SU caps 2021-12-14 16:07:53 -05:00
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c
dc_hw_types.h drm/amd/display: Add DP-HDMI FRL PCON Support in DC 2021-12-01 16:04:56 -05:00
dc_link.h drm/amd/display: get and restore link res map 2021-12-30 08:54:45 -05:00
dc_stat.h
dc_stream.h drm/amd/display: Add DP 2.0 MST DC Support 2021-10-25 21:21:08 -04:00
dc_trace.h
dc_types.h drm/amd/display: parse and check PSR SU caps 2021-12-14 16:07:53 -05:00
dc.h drm/amd/display: Fix for otg synchronization logic 2022-01-25 17:05:35 -05:00
dm_cp_psp.h drm/amd/display: unhard code link to phy idx mapping in dc link and clean up 2022-01-07 17:21:20 -05:00
dm_event_log.h
dm_helpers.h drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi 2021-12-07 13:13:07 -05:00
dm_pp_smu.h
dm_services_types.h
dm_services.h
irq_types.h drm/amd/display: Fix for access for ddc pin and aux engine. 2021-10-06 15:52:48 -04:00
Makefile
os_types.h