V4L/DVB (5123): Buf_qbuf: fix: videobuf_queue->stream corruption and lockup
authorOleg Nesterov <oleg@tv-sign.ru>
Tue, 23 Jan 2007 23:04:13 +0000 (20:04 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 24 Jan 2007 00:00:21 +0000 (22:00 -0200)
commit419dd8378dfa32985672ab7927b4bc827f33b332
tree1dd1dad1ae3593a7042b993fd21cbdee626a9ac8
parent99ddcc7edbb6b1d35a542f6bf0383f1f5a1aa0b0
V4L/DVB (5123): Buf_qbuf: fix: videobuf_queue->stream corruption and lockup

We are doing ->buf_prepare(buf) before adding buf to q->stream list. This
means that videobuf_qbuf() should not try to re-add a STATE_PREPARED buffer.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/video-buf.c