summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLakshmi Narayana Kalavala <lkalaval@codeaurora.org>2015-12-04 16:27:43 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:22:45 -0700
commitee68f004eca8d332195349533f67a7dbf552e843 (patch)
treeed0be38b949ec7a50adcba8fcdc066feb6df59fe /include
parent102fd824c1c9eb25a0ea86092ac5cd7e0968d518 (diff)
msm: camera: Fix memory corruption with vb2 buffers
The camera generic buffer manager and isp buffer manager keep references of vb2 buffers locally during buffer circulation. If for some reason the vb2 buffers are freed from a cleanup call from mediaserver. The memory for the buffers is freed. But the camera buffer managers still access them for a fraction of time before the cleanup call is triggered from daemon process. Hence make sure to access the vb2 buffers only after checking for the existence in vb2 queues to avoid memory corruption. Change-Id: I7a1e5f9a3af3345e0c37d3208facbab107a6b9ed Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions