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:
E V Ravi <evenka@codeaurora.org>
Loading
Please register or sign in to comment