msm: camera: Fix invalid user pointer 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.

Change-Id: I343fa8f4ed598507e6603b77763a724bda1e1ad0
Signed-off-by: Hariram Purushothaman <hariramp@codeaurora.org>
1 file changed