msm: camera: 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.
CRs-Fixed: 2283160
Change-Id: If9205e4f3176a52e52f694a3183dc9c5b7617a97
Signed-off-by:
Haibin Liu <haibinl@codeaurora.org>
Loading
Please register or sign in to comment