1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/amdgpu_dm
Colin Ian King b934dd9b44 drm/amd/display: fix the return of the uninitialized value in ret
Currently if stream->signal is neither SIGNAL_TYPE_DISPLAY_PORT_MST or
SIGNAL_TYPE_DISPLAY_PORT then variable ret is uninitialized and this is
checked for > 0 at the end of the function.  Ret should be initialized,
I believe setting it to zero is a correct default.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: bd0c064c16 ("drm/amd/display: Add return code instead of boolean for future use")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-03-03 23:05:16 -05:00
..
amdgpu_dm.c drm/amd/display: Fix system hang after multiple hotplugs (v3) 2021-02-24 09:48:46 -05:00
amdgpu_dm.h drm/amd/display: Fix system hang after multiple hotplugs (v3) 2021-02-24 09:48:46 -05:00
amdgpu_dm_color.c drm/amd/display/amdgpu_dm/amdgpu_dm_color: Demote a misuse and fix another kernel-doc header 2020-12-01 16:04:45 -05:00
amdgpu_dm_crc.c drm/amd/display: Fix to be able to stop crc calculation 2021-01-14 13:20:07 -05:00
amdgpu_dm_crc.h Revert "drm/amd/display: Expose new CRC window property" 2021-01-14 13:19:08 -05:00
amdgpu_dm_debugfs.c drm/amd/display: Enable "trigger_hotplug" debugfs on all outputs 2021-02-02 12:11:16 -05:00
amdgpu_dm_debugfs.h amdgpu_dm: no need to check return value of debugfs_create functions 2019-06-13 13:59:49 -05:00
amdgpu_dm_hdcp.c drm/amdgpu/display: remove hdcp_srm sysfs on device removal 2021-02-18 16:43:08 -05:00
amdgpu_dm_hdcp.h drm/amdgpu/display: remove hdcp_srm sysfs on device removal 2021-02-18 16:43:08 -05:00
amdgpu_dm_helpers.c drm/amd/display: fix the return of the uninitialized value in ret 2021-03-03 23:05:16 -05:00
amdgpu_dm_irq.c drm/amd/display: Add otg vertical interrupt0 support in DCN1.0 2021-02-09 15:29:02 -05:00
amdgpu_dm_irq.h
amdgpu_dm_irq_params.h drm/amd/display: Refactor to prevent crtc state access in DM IRQ handler 2020-09-15 17:52:39 -04:00
amdgpu_dm_mst_types.c drm/amd/display: Release DSC before acquiring 2021-02-02 12:10:30 -05:00
amdgpu_dm_mst_types.h drm/amdgpu/display: create fake mst encoders ahead of time (v4) 2020-07-14 15:11:07 -04:00
amdgpu_dm_pp_smu.c drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu: Remove unused function 'pp_nv_set_pme_wa_enable()' 2020-12-01 16:04:45 -05:00
amdgpu_dm_services.c drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
amdgpu_dm_trace.h drm/amd/display: Add tracepoint for capturing clocks state 2020-10-26 13:34:26 -04:00
Makefile drm/amd/display: Create amdgpu_dm_hdcp 2019-10-03 09:10:58 -05:00