Acked-by: Alex Deucher <alexander.deucher@xxxxxxx> On Thu, Jan 6, 2022 at 8:40 AM Mario Limonciello <mario.limonciello@xxxxxxx> wrote: > > 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@xxxxxxx> > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index 5d20807b6f88..3d81314e6cb4 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -6093,6 +6093,7 @@ static void update_dsc_caps(struct amdgpu_dm_connector *aconnector, > struct dsc_dec_dpcd_caps *dsc_caps) > { > stream->timing.flags.DSC = 0; > + dsc_caps->is_dsc_supported = false; > > if (aconnector->dc_link && (sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT || > sink->sink_signal == SIGNAL_TYPE_EDP)) { > -- > 2.25.1 >