diff options
| author | 2022-01-23 13:19:58 -0500 | |
|---|---|---|
| committer | 2022-01-25 18:00:34 -0500 | |
| commit | d715c9a2cbd4b5dbf72bec82b033698db3c6eca5 (patch) | |
| tree | f054d823a566aa6f5254a3cd2df25b8522d59f70 /drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | |
| parent | drm/amd/display: Don't update drm connector when read local EDID (diff) | |
| download | linux-dev-d715c9a2cbd4b5dbf72bec82b033698db3c6eca5.tar.xz linux-dev-d715c9a2cbd4b5dbf72bec82b033698db3c6eca5.zip | |
drm/amd/display: add protection in link encoder matching logic
[Why]
Link encoders are created based on its engine ID. The position of a link
encoder in an array could be null since it didn't be allocated. Current
matching logic didn't consider this situation and could get null
encoder.
[How]
To add null encoder check to make the matching logic can go to next to
get a valid one.
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c')
0 files changed, 0 insertions, 0 deletions
