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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user