drm/amd/display: Fix null pointer dereference for dcn401
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 14 May 2024 00:17:00 +0000 (00:17 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:40:39 +0000 (14:40 -0400)
commit00ee2e58c144f425345be65ce71f3b37119a673b
tree1b3d37ffb45f436f8a1535b250e1cb236fa1c288
parent7da55c27e76749b98401fe307d3e243fe6ceb53d
drm/amd/display: Fix null pointer dereference for dcn401

When ODM slice happens on DCN401, there is a null pointer exception
caused by that. This commit address this issue by checking if the
required data structures are initialized.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c