media: videobuf2: Fix length check for single plane dmabuf queueing
authorJohn Cox <jc@kynesim.co.uk>
Wed, 17 Jun 2020 13:21:52 +0000 (15:21 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:41:57 +0000 (12:41 +0200)
commit961d3b27a2aff52dda0b97d35085a743a27c2f46
tree63703e1b2c80b501b94df64d60c5cacffca3d18a
parent906dceb48dfa1e7c99c32e6b25878d47023e916b
media: videobuf2: Fix length check for single plane dmabuf queueing

Check against length in v4l2_buffer rather than vb2_buffer when the
buffer is a dmabuf. This makes the single plane test the same as the
existing multiplanar test.

Signed-off-by: John Cox <jc@kynesim.co.uk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c