drm/amd/display: Fix hdcp1 create session
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 3 Dec 2019 20:47:53 +0000 (15:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 17:13:13 +0000 (12:13 -0500)
commit52c7423cfdc0e74d4e553231e5f249566b6b6cb3
tree2f9caf524ed630a6040d5c03727f85dc95064535
parent4f47cd0c01851065a85d684c619e1dba8fa9c167
drm/amd/display: Fix hdcp1 create session

[Why]
PSP needs session ID to destroy a session, In the case where we fail
create session we don't have a session ID

[How]
Set the session ID before returning

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