securemsm-kernel: Resolved NULL pointer dereference in hdcp driver

Hdcp2p2 TA handle is getting accessed after freed in hdcp_stop_command
which is causing device crash while running hdcp2p2 use cases. So avoided
hdcp handle access after hdcp_stop call.

Change-Id: I8dc08451e51077b4f3ab086bb0c878d5df4f7f58
This commit is contained in:
Sheik Anwar Shabic Y
2022-12-08 15:33:47 +05:30
parent 77a5daed43
commit 32a90722f5

View File

@@ -1272,7 +1272,7 @@ int hdcp2_app_comm(void *ctx, enum hdcp2_app_cmd cmd,
break;
case HDCP2_CMD_STOP:
rc = hdcp2_app_stop(handle);
break;
goto error;
default:
rc = -EINVAL;
break;