瀏覽代碼

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
Sheik Anwar Shabic Y 2 年之前
父節點
當前提交
32a90722f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hdcp/hdcp_qseecom.c

+ 1 - 1
hdcp/hdcp_qseecom.c

@@ -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;