drm/amd/display: Return the correct HDCP error code
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 14 Feb 2024 20:29:51 +0000 (13:29 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:59 +0000 (13:12 -0400)
commite64b3f55e458ce7e2087a0051f47edabf74545e7
tree047791a4c0b28b65d7ccc04970441f8ea722fc72
parent2d7f3d1a5866705be2393150e1ffdf67030ab88d
drm/amd/display: Return the correct HDCP error code

[WHY & HOW]
If the display is null when creating an HDCP session, return a proper
error code.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/hdcp_psp.c