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:
Gaurav Jindal <gjindal@codeaurora.org>
Loading
Please register or sign in to comment