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

Commit a866ce11 authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

msm: mink: uninitialized data in smcinvoke_release



uninitialized data in smcinvoke_release call is triggering a false
alarm to process piggyback data. This fix prevents this false
trigger case.

Change-Id: Id48333a7d4511ca7e67f8766dd9865c1f3868186
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent 260a2228
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1690,6 +1690,8 @@ static int smcinvoke_release(struct inode *nodp, struct file *filp)
		goto out;
	}

	memset(in_buf, 0, PAGE_SIZE);
	memset(out_buf, 0, PAGE_SIZE);
	hdr.tzhandle = tzhandle;
	hdr.op = OBJECT_OP_RELEASE;
	hdr.counts = 0;