[media] media: vb2: reset queued list on REQBUFS(0) call
Queued list was not reset on REQBUFS(0) call. This caused to enqueue a freed buffer to the driver. Reported-by: Angela Wan <angela.j.wan@gmail.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
4907602f85
commit
bd50d999d4
@ -265,6 +265,7 @@ static void __vb2_queue_free(struct vb2_queue *q, unsigned int buffers)
|
|||||||
q->num_buffers -= buffers;
|
q->num_buffers -= buffers;
|
||||||
if (!q->num_buffers)
|
if (!q->num_buffers)
|
||||||
q->memory = 0;
|
q->memory = 0;
|
||||||
|
INIT_LIST_HEAD(&q->queued_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user