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

Skip to content
Commit 85b9c90d authored by Angelo G. Del Regno's avatar Angelo G. Del Regno Committed by Pranav Vashi
Browse files

platform: msm: gsi: Correctly allocate memory for copy_from_user



Copying from user to a global variable inside the driver is
unsafe and insecure: allocate and free the memory used for
copying from userspace in the functions doing it.

This also has the good side effect of solving a build failure
when the kernel is built with GCC >=4.9

Signed-off-by: default avatarPanchajanya1999 <panchajanya@azure-dev.live>
(cherry picked from commit ca20adfa1785903e57501145ffd4e1ff71a5a233)

Change-Id: I96d0e74fa73939883079cf2b3308dbfa7de6a453
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent 21157936
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