Skip to content

Commit 63ad537

Browse files
superm1alexdeucher
authored andcommitted
drm/amd/display: explicitly set is_dsc_supported to false before use
When UBSAN is enabled a case is shown on unplugging the display that this variable hasn't been initialized by `update_dsc_caps`, presumably when the display was unplugged it wasn't copied from the DPCD. Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956497 Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b54ce6c commit 63ad537

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6097,6 +6097,7 @@ static void update_dsc_caps(struct amdgpu_dm_connector *aconnector,
60976097
struct dsc_dec_dpcd_caps *dsc_caps)
60986098
{
60996099
stream->timing.flags.DSC = 0;
6100+
dsc_caps->is_dsc_supported = false;
61006101

61016102
if (aconnector->dc_link && (sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT ||
61026103
sink->sink_signal == SIGNAL_TYPE_EDP)) {

0 commit comments

Comments
 (0)