Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69710e42 authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: initialize qtee_shm



Unitialized qtee_shm could cause gen_pool_free crash, thus
initialize qtee_shm to 0.

Change-Id: Ie67f8766dd9865c1f3868186d48333a7d4511ca7
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 1232e813
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ static int qseecom_scm_call2(uint32_t svc_id, uint32_t tz_cmd_id,
	uint32_t qseos_cmd_id = 0;
	struct scm_desc desc = {0};
	struct qseecom_command_scm_resp *scm_resp = NULL;
	struct qtee_shm shm;
	struct qtee_shm shm = {0};
	phys_addr_t pa;

	if (!req_buf || !resp_buf) {
@@ -6604,7 +6604,7 @@ static int qseecom_mdtp_cipher_dip(void __user *argp)
	struct scm_desc desc = {0};
	int ret;
	phys_addr_t pain, paout;
	struct qtee_shm shmin, shmout;
	struct qtee_shm shmin = {0}, shmout = {0};

	do {
		/* Copy the parameters from userspace */