OSDN Git Service

drm/amd/display: explicitly set is_dsc_supported to false before use
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 5 Jan 2022 18:48:16 +0000 (12:48 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:25 +0000 (15:44 -0500)
commit63ad5371cd1e379519395c49a4b6a652c36c98e5
treece6260d1aca4ef446f2287b023c9ded1585e3dfa
parentb54ce6c92cf57ff276e4539750c140c9c96416f3
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c