commit | 0495e62866fed2bc4bb347bfc58e5bf851151953 | [log] [tgz] |
---|---|---|
author | Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org> | Fri Jun 02 18:53:00 2017 -0700 |
committer | Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org> | Fri Jun 02 18:54:29 2017 -0700 |
tree | 7b2a34d54bc3d12a6afb5b5b74c221ace1f3c010 | |
parent | 823e04194da39baf0f773fd0d53653322b5fb8da [diff] |
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>