Skip to content

Commit

Permalink
drm/i915/hdcp: return correct error code
Browse files Browse the repository at this point in the history
hdcp2_enable_stream_encryption shouldn't get called in case
of any port authentication or encryption error, though
hdcp2_enable_stream_encryption checks for link encryption
before enabling stream encryption and returns error but
this return error code won't be correct in case of any error
due to port authentication and encryption.

Cc: Ramalingam C <[email protected]>
Reviewed-by: Ankit Nautiyal <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
anshuma1 committed Mar 22, 2021
1 parent 8b06f6d commit 3a913fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/display/intel_hdcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,8 @@ static int hdcp2_authenticate_and_encrypt(struct intel_connector *connector)
}
}

ret = hdcp2_enable_stream_encryption(connector);
if (!ret)
ret = hdcp2_enable_stream_encryption(connector);

return ret;
}
Expand Down

0 comments on commit 3a913fa

Please sign in to comment.