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

Commit 65d2f5b7 authored by Zhen Kong's avatar Zhen Kong
Browse files

msm: mink: fix static local variable issue for qtee_shm



in_shm and out_shm should not be static local variable
to avoid unexpected behavior.

Change-Id: I82b12adbe18f28bef9ba371b59c99323551de7c3
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 6b3ddc57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1510,7 +1510,7 @@ static long process_invoke_req(struct file *filp, unsigned int cmd,
	size_t inmsg_size = 0, outmsg_size = SMCINVOKE_TZ_MIN_BUF_SIZE;
	union  smcinvoke_arg *args_buf = NULL;
	struct smcinvoke_file_data *tzobj = filp->private_data;
	static struct qtee_shm in_shm = {0}, out_shm = {0};
	struct qtee_shm in_shm = {0}, out_shm = {0};
	/*
	 * Hold reference to remote object until invoke op is not
	 * completed. Release once invoke is done.