V4L/DVB (5603): V4L: Prevent queueing queued buffers.
authorSakari Ailus <sakari.ailus@nokia.com>
Fri, 4 May 2007 15:19:59 +0000 (12:19 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 9 May 2007 13:12:56 +0000 (10:12 -0300)
videobuf_qbuf queues buffers to q->stream but does not properly check
the state of the buffer before queueing. It was possible to queue
buffers that already were in the queue.
Only buffers that are in states STATE_NEEDS_INIT and STATE_IDLE can be
queued.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

No differences found