msm: camera: cpas: Fix invalid user ptr access in CONFIG_COMPAT mode

When 32-bit task is calling IOCTLs into kernel, accessing the IOCTL
data will cause an access violation if the data is not copied
into kernel memory first. To avoid this, use copy_from_user()
and copy_to_user() while handling IOCTLs.

CRs-Fixed: 2019539
Change-Id: I2125778be7523853f7f7301586a3eff06479885d
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
1 file changed