drm/amd/display: Added local_sink null check before access
authorJake Wang <haonan.wang2@amd.com>
Fri, 5 Jun 2020 20:16:38 +0000 (16:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:25 +0000 (01:59 -0400)
commit3e1974cf02481c464703a33881e20c9711053979
tree3b7a716ecaefb5b412157623c3345508af2193c0
parent8c44515be175a1bc18620284d23efa385daea49f
drm/amd/display: Added local_sink null check before access

[Why & How]
Need to check if local_sink is NULL before accessing.

Signed-off-by: Jake Wang <haonan.wang2@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c