diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-10-25 02:07:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-08 06:05:41 -0500 |
commit | bd50d999d4d4f311fda9b777d1e567433cc0f142 (patch) | |
tree | 8cacbc154f1ce67d0de756de2c5e1a9810430c49 /drivers/media | |
parent | 4907602f85d454c127d20ac943ead13e2919898d (diff) |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/videobuf2-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/videobuf2-core.c b/drivers/media/video/videobuf2-core.c index e7c52ff3c76..95a3f5e82ae 100644 --- a/drivers/media/video/videobuf2-core.c +++ b/drivers/media/video/videobuf2-core.c | |||
@@ -265,6 +265,7 @@ static void __vb2_queue_free(struct vb2_queue *q, unsigned int buffers) | |||
265 | q->num_buffers -= buffers; | 265 | q->num_buffers -= buffers; |
266 | if (!q->num_buffers) | 266 | if (!q->num_buffers) |
267 | q->memory = 0; | 267 | q->memory = 0; |
268 | INIT_LIST_HEAD(&q->queued_list); | ||
268 | } | 269 | } |
269 | 270 | ||
270 | /** | 271 | /** |