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:
Shivi Mangal <quic_smangal@quicinc.com>
(cherry picked from commit fbcaf470eddb6fcaf1c9c63835113a257310b498)
Loading
Please register or sign in to comment