summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorTrishansh Bhardwaj <tbhardwa@codeaurora.org>2017-05-03 11:33:58 +0530
committerTrishansh Bhardwaj <tbhardwa@codeaurora.org>2017-05-05 02:32:23 +0530
commit50f424f032c5dce07bfae6a1ce83c28d16835e17 (patch)
treebaa89d1c3ae250dc1173deda777b64ddfef8fa63 /lib/mpi/mpi-inline.h
parent5d78c03af8ffb440d418cbc45ad0d68928354e48 (diff)
msm: camera: Do not pass kptr in copy_from_user
Do not call copy_from_user in ioctl handler if CONFIG_COMPAT is defined. In 64 bit kernel and 32 bit userspace, ioctl call invokes compat_ioctl. First copy_from_user is done in compat_ioctl then pointer is passed to unlocked_ioctl for actual processing. In unlocked_ioctl again copy_from_user is called on kernel pointer. Change-Id: I2334379f48e30b58757f0fe5e238e8df5753eea8 Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions