Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
32a90722f5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;