msm: camera: fix bug in camera msm_vb2 implementation
Upon every buf done, we should set the msm_vb2 buffer's in free_q field to zero, like we do for every put buf. This is in consistence with the design and ensures proper buffer circulation. Change-Id: I484d400b55d57afa957ef90ce4b303cffeb74d5b Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
ab4d38407e
commit
a16c7db167
@@ -172,6 +172,7 @@ static int msm_vb2_buf_done(struct vb2_buffer *vb, int session_id,
|
||||
/* put buf before buf done */
|
||||
if (msm_vb2->in_freeq) {
|
||||
vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
|
||||
msm_vb2->in_freeq = 0;
|
||||
rc = 0;
|
||||
} else
|
||||
rc = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user