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

Skip to content
Commit 8496c66a authored by Vicky Sehrawat's avatar Vicky Sehrawat
Browse files

ASoC: msm: Fix for passing correct data to userspace



The Copy_to_user function copies the whole frame structure
to the userspace. Only len bytes should be copied.
As the whole frame is being copied
(HPCM_MAX_VOC_PKT_SIZE bytes) the uninitialized bytes
in the buffer will be disclosed to the calling
user-space process.

Change-Id: I7d7f58d358aaf56d91a79cfe95c04d937b48da53
Signed-off-by: default avatarVicky Sehrawat <vickys@codeaurora.org>
parent 13d2d953
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment