]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add NULL check
authorChris Park <Chris.Park@amd.com>
Mon, 28 Feb 2022 15:23:00 +0000 (10:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:25:16 +0000 (14:25 -0400)
commitebf387427107178cf60aa397d97372e247e359f7
treeb7868a4c338545cc578f2aabd023c4b1f787a87c
parentb13e57918ba52beda6f0bafcb607fc29ab5a79f3
drm/amd/display: Add NULL check

[Why]
Virtualization enters blue screen of death (BSoD)
due to NULL res_pool object when accessing DSC
encoder capability.

[How]
Add NULL check to avoid blue screen of death.

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Chris Park <Chris.Park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c