linux/drivers/gpu/drm/amd/display/amdgpu_dm
Anson Jacob 6a30a92997 drm/amd/display: Fix UBSAN warning for not a valid value for type '_Bool'
[Why]
dc_cursor_position do not initialise position.translate_by_source when
crtc or plane->state->fb is NULL. UBSAN caught this error in
dce110_set_cursor_position, as the value was garbage.

[How]
Initialise dc_cursor_position structure elements to 0 in handle_cursor_update
before calling get_cursor_position.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1471
Reported-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
Reviewed-by: Aurabindo Jayamohanan Pillai <Aurabindo.Pillai@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-03-23 23:32:12 -04: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: Use PSP TA to read out crc 2021-03-05 15:12:09 -05:00
amdgpu_dm_crc.h drm/amd/display: Use PSP TA to read out crc 2021-03-05 15:12:09 -05:00
amdgpu_dm_debugfs.c drm/amd/display: Use PSP TA to read out crc 2021-03-05 15:12:09 -05:00
amdgpu_dm_debugfs.h drm/amd/display: Support crc on specific region 2021-03-05 15:11:47 -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/amdgpu/display: Implement functions to let DC allocate GPU memory 2021-03-23 23:10:49 -04:00
amdgpu_dm_irq_params.h drm/amd/display: Support crc on specific region 2021-03-05 15:11:47 -05:00
amdgpu_dm_irq.c drm/amdgpu/display: remove redundant continue statement 2021-03-05 15:14:07 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Support for DMUB AUX 2021-03-02 14:05:41 -05:00
amdgpu_dm_mst_types.h
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
amdgpu_dm.c drm/amd/display: Fix UBSAN warning for not a valid value for type '_Bool' 2021-03-23 23:32:12 -04:00
amdgpu_dm.h drm/amdgpu/display: Implement functions to let DC allocate GPU memory 2021-03-23 23:10:49 -04:00
Makefile