From f093a3613d42015a39a058d758cf844bed2748d5 Mon Sep 17 00:00:00 2001 From: nishant chaubey Date: Wed, 22 Feb 2023 22:34:50 +0530 Subject: [PATCH] msm: ADSPRPC: Handle potential leak information Memset the entire header buffer to fix potential leak information for Cached buffers. Signed-off-by: nishant chaubey --- dsp/adsprpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/adsprpc.c b/dsp/adsprpc.c index 4a3e7eb04a..66d442c7cc 100644 --- a/dsp/adsprpc.c +++ b/dsp/adsprpc.c @@ -2363,7 +2363,7 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx) VERIFY(err, !IS_ERR_OR_NULL(ctx->buf->virt)); if (err) goto bail; - memset(ctx->buf->virt, 0, metalen); + memset(ctx->buf->virt, 0, ctx->buf->size); } ctx->used = metalen;