diff options
| -rw-r--r-- | drivers/char/adsprpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index ed0226131b90..0c89ab992012 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -1140,6 +1140,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; |
