OSDN Git Service

drm/amd/display: Null check aconnector in event_property_validate
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Mon, 25 Nov 2019 15:34:13 +0000 (10:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Nov 2019 19:50:38 +0000 (14:50 -0500)
commit79c4ac0d759b6baaca22d7f37f6594a677030976
treeee8f4c4b0c5763f0bec6422f1094adb8f83d79b8
parent58e8c603b8fe4b52bf7236a5a253ef61350a19fe
drm/amd/display: Null check aconnector in event_property_validate

[Why]
previously event_property_validate was only called after we enabled the display.
But after "Refactor HDCP to handle multiple displays per link" this function
can be called at any time. In certain cases we don't have a aconnector

[How]
Null check aconnector and exit early. This is ok because we only need to check the
ENABLED->DESIRED transition if a connector exists.

Fixes: b1abe5586ffc ("drm/amd/display: Refactor HDCP to handle multiple displays per link")
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c