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

Commit 5cf2ebee authored by E V Ravi's avatar E V Ravi
Browse files

msm: ais: Fix arbitrary kernel write



In 64 bit kernel and 32 bit userspace,ioctl_ptr from
kernel space, should NOT call the copy_from_user.
In 64 bit kernel and 64 bit userspace,ioctl_ptr from
user space, use the copy_from_user to copy data.
use the is_compat_task to distinguish two condition

Change-Id: I88fd0a3da8ceb2e707f8790d51fe5dd141a2cd2c
Signed-off-by: default avatarE V Ravi <evenka@codeaurora.org>
parent 83339054
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