drm/amd/display: Return correct Error code for validate h_prime
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 3 Dec 2019 20:55:13 +0000 (15:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 17:13:20 +0000 (12:13 -0500)
[Why]
We are returning incorrect error code for validate h prime

[How]
Return the right Error code

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c

index 8f2e2fe..7911dc1 100644 (file)
@@ -511,7 +511,7 @@ enum mod_hdcp_status mod_hdcp_hdcp2_validate_h_prime(struct mod_hdcp *hdcp)
        psp_hdcp_invoke(psp, hdcp_cmd->cmd_id);
 
        if (hdcp_cmd->hdcp_status != TA_HDCP_STATUS__SUCCESS)
-               return MOD_HDCP_STATUS_HDCP2_VALIDATE_AKE_CERT_FAILURE;
+               return MOD_HDCP_STATUS_HDCP2_VALIDATE_H_PRIME_FAILURE;
 
        if (msg_out->process.msg1_status != TA_HDCP2_MSG_AUTHENTICATION_STATUS__SUCCESS)
                return MOD_HDCP_STATUS_HDCP2_VALIDATE_H_PRIME_FAILURE;