securemsm-kernel: Fix misra issues in hdcp driver

Initialized the uninitialized variable to prevent potential errors.

Change-Id: I2fc05486a246fe3c05997b24587638928a0769ec
Signed-off-by: Sheik Anwar Shabic Y <quic_sheikanw@quicinc.com>
This commit is contained in:
Sheik Anwar Shabic Y
2023-09-22 12:45:06 +05:30
parent f5557b6e65
commit c363344909
2 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ static int hdcp1_key_set(struct hdcp1_smcinvoke_handle *handle,
uint8_t *ksvRes = NULL;
size_t ksvResLen = 0;
ksvRes = kmalloc(HDCP1_AKSV_SIZE, GFP_KERNEL);
ksvRes = kzalloc(HDCP1_AKSV_SIZE, GFP_KERNEL);
if (!ksvRes)
return -EINVAL;