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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jan 2022 08:13:13 +0000 (09:13 +0100)
commitce258c74f8d95e81ce65f53775fcdcbc8ca090da
tree4dbd8bcf80f81d44544a6d26fc190ee1477e14fc
parentd5df26479c825c4891aea4ce1a518453a49ad217
drm/amd/display: explicitly set is_dsc_supported to false before use

commit 63ad5371cd1e379519395c49a4b6a652c36c98e5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c