]> 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)
commit7f6e9bf7c04e8bac790abd1b596fd2bc100f4958
tree97a2fbc817f87fb15a517292335a7a43395c4dd2
parent94e9dc396bd33c718b098fad1c33126b26cb03ac
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