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

Skip to content
Commit 1824ac8e authored by Gaurav Jindal's avatar Gaurav Jindal
Browse files

msm: camera: mem: Mutex before cpu_begin_access & cpu_end_access



In corner cases, a possibility lies that ion buffer is getting freed
and simultaneously cpu_begin_access or cpu_end_access is called on
another cpu. If the buffer gets freed before dereferencing, device
will crash.
It protects the tbl.bufq[idx] with tbl.bufq[idx].q_lock.
This will prevent the parallel access of the same buffer.

Change-Id: I9e04486b5ee815b0880ccc704065182811db59cc
Signed-off-by: default avatarGaurav Jindal <gjindal@codeaurora.org>
parent 2e671e75
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