]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: fix nullptr on vega initialization
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2017 20:25:11 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:22:39 +0000 (17:22 -0400)
Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 30148b4eabae5f85b9b7d82c501304e0ae360835..a9b4eb0099ac193dbae37477c172a2d60a6b8cef 100644 (file)
@@ -1427,6 +1427,7 @@ static int dm_early_init(void *handle)
                adev->mode_info.num_crtc = 6;
                adev->mode_info.num_hpd = 6;
                adev->mode_info.num_dig = 6;
+               adev->mode_info.plane_type = dm_surfaces_type_default;
                break;
        default:
                DRM_ERROR("Usupported ASIC type: 0x%X\n", adev->asic_type);