]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:43 +0000 (07:47 +0200)
commit1c5742e8112830ef86af45cd7aa2529c5c55e694
tree3c19ac8df496170002fa70be97d7907008117fc5
parent76dbad5017b54ba3602f54e4a4fa1a3f6ad82b94
media: videobuf2-core: don't call memop 'finish' when queueing

[ Upstream commit 90b2da89a083e1395cb322521a42397c49ae4500 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/common/videobuf2/videobuf2-core.c