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

Commit 27597eb9 authored by Shivi Mangal's avatar Shivi Mangal Committed by Ajith Rajana
Browse files

msm: camera: sensor: Handling race condition in util api



I2C cmd is coming from user space which can be modified due to
access to shared memory. This change scopes the data locally so
as to avoid vulnerability of count being modified by external
means while executing due to being in shared memory.

CRs-Fixed: 3707472
Change-Id: I8a89e23e99b80b089ed4c4cf3098feead752356e
Signed-off-by: default avatarShivi Mangal <quic_smangal@quicinc.com>
(cherry picked from commit 4e00cc5f9f81bf471d58ee5d6beb210a5326fcff)
(cherry picked from commit 6245be68a914dd9984c259ab3c6bc1647c1593be)
parent 06f5366d
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