OSDN Git Service

ASoC: msm: q6dspv2: fix potentional information leak
authorMeng Wang <mwang@codeaurora.org>
Wed, 9 Nov 2016 03:00:56 +0000 (11:00 +0800)
committerMeng Wang <mwang@codeaurora.org>
Wed, 9 Nov 2016 03:15:27 +0000 (11:15 +0800)
commit8164972a6c3ead37c6c5aad159b9ff246ccdeff1
treea5c4384784e4cf8d85bffb462130527f177a6c63
parent4a91ea36cbf0f5a782b5b6f69604ed70bd0ab6ba
ASoC: msm: q6dspv2: fix potentional information leak

The heap buffer pointed to out_buffer and in_buffer are allocated
but uninitlalized. It may cause information leak.
Change to kzalloc instead of kmalloc when allocating kernel buffers
to avoid information leak.

CRs-Fixed: 1087020
Change-Id: I6f9b7a630158355a7f920dcf9cfffe537b1c6a85
Signed-off-by: Meng Wang <mwang@codeaurora.org>
sound/soc/msm/qdsp6v2/q6asm.c