]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: prevent reading unitialized links
authorMikita Lipski <mikita.lipski@amd.com>
Mon, 15 Nov 2021 21:07:38 +0000 (16:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:10:30 +0000 (13:10 -0500)
commit0ca1a5721590c171dd64a71edfc1ed3e6b7a5156
tree532514e14eea4faecb46ae8ea55eae93be8d8b0a
parentbd2d7ba36aed6ec031b0fde9494fc50cdadc6b0c
drm/amd/display: prevent reading unitialized links

[why/how]
The function can be called on boot or after suspend when
links are not initialized, to prevent it guard it with
NULL pointer check

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_link.h