]> git.baikalelectronics.ru Git - kernel.git/commit
media: videobuf2-core: don't call memop 'finish' when queueing
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 May 2018 12:43:02 +0000 (08:43 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 19:51:46 +0000 (15:51 -0400)
commit32829d846acc6f94e207eecc884100b256885e3c
tree97a2fbc817f87fb15a517292335a7a43395c4dd2
parentfe169f6e25ee5b8bc85afc1040da0c23c8397ccf
media: videobuf2-core: don't call memop 'finish' when queueing

When a buffer is queued or requeued in vb2_buffer_done, then don't
call the finish memop. In this case the buffer is only returned to vb2,
not to userspace.

Calling 'finish' here will cause an unbalance when the queue is
canceled, since the core will call the same memop again.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c