[media] vb2: fix PREPARE_BUF regression
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 10 Feb 2014 16:12:00 +0000 (13:12 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 09:56:37 +0000 (06:56 -0300)
commit952c9ee2900de152c4999d94da5c4bd846ae52e8
treeecd9327b2fa13a28b9c93e790e1625219c86fdf5
parent4e5a4d8a8e970bd6b96c1c710cd636770b776697
[media] vb2: fix PREPARE_BUF regression

Fix an incorrect test in vb2_internal_qbuf() where only DEQUEUED buffers
are allowed. But PREPARED buffers are also OK.

Introduced by commit 4138111a27859dcc56a5592c804dd16bb12a23d1
("vb2: simplify qbuf/prepare_buf by removing callback").

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c