Skip to content
Snippets Groups Projects
Commit 484591f5 authored by Bhalchandra Gajare's avatar Bhalchandra Gajare Committed by Badhri Jagan Sridharan
Browse files

ASoC: msm-lsm-client: use kzalloc instead of kmalloc


In the ioctl function, driver allocates memory to store data
internally before calling copy_to_user to copy data to user-space.
It is possible that kernel internal information can be leaked to
user space through this if the allocated memory is not completely
overwritten with valid data. Use kzalloc to fix this.

CRs-fixed: 2026045
Bug: 73888283
Change-Id: I754ae2157034a135aaca4a15badf10d2567b7ed6
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 1e535e90
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment