Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0495e628 authored by Pavan Kumar Chilamkurthi's avatar Pavan Kumar Chilamkurthi
Browse files

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: default avatarPavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
parent 823e0419
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment