drm/amd/display: Skip pipe if the pipe idx not set properly
authorMuhammad Ahmed <ahmed.ahmed@amd.com>
Fri, 15 Mar 2024 22:30:26 +0000 (18:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 05:43:42 +0000 (01:43 -0400)
commitaf114efe8d24b5711cfbedf7180f2ac1a296c24b
treea73684be7ac2afece19343eb3da1441864ba33eb
parent514e816d2239bfbb11b63a4e33c8882b11ad3d61
drm/amd/display: Skip pipe if the pipe idx not set properly

[why]
Driver crashes when pipe idx not set properly

[how]
Add code to skip the pipe that idx not set properly

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Muhammad Ahmed <ahmed.ahmed@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/dml2/dml2_utils.c