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

Commit e3361f94 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

msm: ADSPRPC: Initialize FastRPC invoke metadata



Initializing metadata buffer to zero before reusing the buffer
for next invoke.

Change-Id: Iaab3478732b83427a475e95afa0e031cb76f60d9
Acked-by: default avatarViswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent c5265904
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -992,6 +992,9 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
		if (err)
			goto bail;
	}
	if (ctx->buf->virt && metalen <= copylen)
		memset(ctx->buf->virt, 0, metalen);

	/* copy metadata */
	rpra = ctx->buf->virt;
	ctx->rpra = rpra;