Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Oleg Nesterov and committed by
Mauro Carvalho Chehab
419dd837 99ddcc7e

+1
+1
drivers/media/video/video-buf.c
··· 700 700 goto done; 701 701 } 702 702 if (buf->state == STATE_QUEUED || 703 + buf->state == STATE_PREPARED || 703 704 buf->state == STATE_ACTIVE) { 704 705 dprintk(1,"qbuf: buffer is already queued or active.\n"); 705 706 goto done;