]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: avoid to authentication when DEVICE_COUNT=0
authorYu-ting Shen <Yu-ting.Shen@amd.com>
Wed, 14 Apr 2021 07:33:33 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:35:50 +0000 (23:35 -0400)
commit5aaeaae76466c0fd97785012d64c76662fe1c880
tree0e5aa0da6bde9ec6f190b65a71168b9d78213103
parent546d1178f5ea3c3bd59d41a80e0f9d3d603f13ea
drm/amd/display: avoid to authentication when DEVICE_COUNT=0

[why]
we don't support authentication with DEVICE_COUNT=0

[how]
check value DEVICE_COUNT before doing authentication

Signed-off-by: Yu-ting Shen <Yu-ting.Shen@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Wayne Lin <waynelin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_execution.c